001    /**
002     *  Licensed to the Apache Software Foundation (ASF) under one or more
003     *  contributor license agreements.  See the NOTICE file distributed with*
004     *  this work for additional information regarding copyright ownership. 
005     *  The ASF licenses this file to You under the Apache License, Version  2.0
006     *  (the "License"); you may not use this file except in compliance wit h
007     *  the License.  You may obtain a copy of the License at 
008     * 
009     *       http://www.apache.org/licenses/LICENSE-2.0
010     *
011     *  Unless required by applicable law or agreed to in writing, software
012     *  distributed under the License is distributed on an "AS IS" BASIS,
013     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     *  See the License for the specific language governing permissions and
015     *  limitations under the License.
016     */
017     
018    package org.apache.geronimo.mavenplugins.testsuite.report;
019     
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    public class ReportTestCase
024    {
025        private String fullClassName;
026    
027        private String className;
028    
029        private String fullName;
030    
031        private String name;
032    
033        private float time;
034    
035        private Map failure;
036    
037        public String getName()
038        {
039            return name;
040        }
041    
042        public void setName( String name )
043        {
044            this.name = name;
045        }
046    
047        public String getFullClassName()
048        {
049            return fullClassName;
050        }
051    
052        public void setFullClassName( String name )
053        {
054            this.fullClassName = name;
055        }
056    
057        public String getClassName()
058        {
059            return className;
060        }
061    
062        public void setClassName( String name )
063        {
064            this.className = name;
065        }
066    
067        public float getTime()
068        {
069            return time;
070        }
071    
072        public void setTime( float time )
073        {
074            this.time = time;
075        }
076    
077        public Map getFailure()
078        {
079            return failure;
080        }
081    
082        public String getFullName()
083        {
084            return fullName;
085        }
086    
087        public void setFullName( String fullName )
088        {
089            this.fullName = fullName;
090        }
091    
092        public void addFailure( String message, String type )
093        {
094            failure = new HashMap();
095            failure.put( "message", message );
096            failure.put( "type", type );
097        }
098    }