EMMA Coverage Report (generated Sun Sep 18 11:34:27 PHT 2011)
[all classes][org.apache.maven.continuum.web.action.notifier]

COVERAGE SUMMARY FOR SOURCE FILE [MsnGroupNotifierEditAction.java]

nameclass, %method, %block, %line, %
MsnGroupNotifierEditAction.java0%   (0/1)0%   (0/9)0%   (0/69)0%   (0/20)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MsnGroupNotifierEditAction0%   (0/1)0%   (0/9)0%   (0/69)0%   (0/20)
MsnGroupNotifierEditAction (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getAddress (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getLogin (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getPassword (): String 0%   (0/1)0%   (0/3)0%   (0/1)
initConfiguration (Map): void 0%   (0/1)0%   (0/19)0%   (0/4)
setAddress (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
setLogin (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
setNotifierConfiguration (ProjectNotifier): void 0%   (0/1)0%   (0/26)0%   (0/6)
setPassword (String): void 0%   (0/1)0%   (0/4)0%   (0/2)

1package org.apache.maven.continuum.web.action.notifier;
2 
3/*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21 
22import java.util.HashMap;
23import java.util.Map;
24 
25import org.apache.maven.continuum.model.project.ProjectGroup;
26import org.apache.maven.continuum.model.project.ProjectNotifier;
27import org.apache.maven.continuum.notification.AbstractContinuumNotifier;
28 
29/**
30 * Action that edits a {@link ProjectNotifier} of type 'MSN' from the
31 * specified {@link ProjectGroup}.
32 *
33 * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
34 * @version $Id: MsnGroupNotifierEditAction.java 766895 2009-04-20 22:02:13Z evenisse $
35 * @plexus.component role="com.opensymphony.xwork2.Action" role-hint="msnGroupNotifierEdit"
36 */
37public class MsnGroupNotifierEditAction
38    extends AbstractGroupNotifierEditAction
39{
40    private String login;
41 
42    private String password;
43 
44    private String address;
45 
46    protected void initConfiguration( Map<String, String> configuration )
47    {
48        login = configuration.get( "login" );
49 
50        password = configuration.get( "password" );
51 
52        address = configuration.get( AbstractContinuumNotifier.ADDRESS_FIELD );
53    }
54 
55    protected void setNotifierConfiguration( ProjectNotifier notifier )
56    {
57        HashMap<String, String> configuration = new HashMap<String, String>();
58 
59        configuration.put( "login", login );
60 
61        configuration.put( "password", password );
62 
63        configuration.put( AbstractContinuumNotifier.ADDRESS_FIELD, address );
64 
65        notifier.setConfiguration( configuration );
66    }
67 
68    public String getLogin()
69    {
70        return login;
71    }
72 
73    public void setLogin( String login )
74    {
75        this.login = login;
76    }
77 
78    public String getPassword()
79    {
80        return password;
81    }
82 
83    public void setPassword( String password )
84    {
85        this.password = password;
86    }
87 
88    public String getAddress()
89    {
90        return address;
91    }
92 
93    public void setAddress( String address )
94    {
95        this.address = address;
96    }
97}

[all classes][org.apache.maven.continuum.web.action.notifier]
EMMA 2.0.5312 (C) Vladimir Roubtsov