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 [WagonGroupNotifierEditAction.java]

nameclass, %method, %block, %line, %
WagonGroupNotifierEditAction.java0%   (0/1)0%   (0/7)0%   (0/50)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class WagonGroupNotifierEditAction0%   (0/1)0%   (0/7)0%   (0/50)0%   (0/15)
WagonGroupNotifierEditAction (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getId (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getUrl (): String 0%   (0/1)0%   (0/3)0%   (0/1)
initConfiguration (Map): void 0%   (0/1)0%   (0/13)0%   (0/3)
setId (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
setNotifierConfiguration (ProjectNotifier): void 0%   (0/1)0%   (0/20)0%   (0/5)
setUrl (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;
27 
28/**
29 * Action that edits a {@link ProjectNotifier} of type 'Wagon' from the
30 * specified {@link ProjectGroup}.
31 *
32 * @author <a href="mailto:hisidro@exist.com">Henry Isidro</a>
33 * @plexus.component role="com.opensymphony.xwork2.Action" role-hint="wagonGroupNotifierEdit"
34 */
35 
36public class WagonGroupNotifierEditAction
37    extends AbstractGroupNotifierEditAction
38{
39    private String url;
40 
41    private String id;
42 
43    protected void initConfiguration( Map<String, String> configuration )
44    {
45        url = configuration.get( "url" );
46        id = configuration.get( "id" );
47    }
48 
49    protected void setNotifierConfiguration( ProjectNotifier notifier )
50    {
51        HashMap<String, String> configuration = new HashMap<String, String>();
52 
53        configuration.put( "url", url );
54 
55        configuration.put( "id", id );
56 
57        notifier.setConfiguration( configuration );
58    }
59 
60    public String getUrl()
61    {
62        return url;
63    }
64 
65    public void setUrl( String url )
66    {
67        this.url = url;
68    }
69 
70    public String getId()
71    {
72        return id;
73    }
74 
75    public void setId( String id )
76    {
77        this.id = id;
78    }
79}

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