Author: sebb Date: Mon Mar 8 02:39:16 2010 New Revision: 920176 URL: http://svn.apache.org/viewvc?rev=920176&view=rev Log: New dummy test for main all JUnit4 annotations
Added: jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java (with props) Added: jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java?rev=920176&view=auto ============================================================================== --- jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java (added) +++ jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java Mon Mar 8 02:39:16 2010 @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package test; + +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + * Test to demonstrate all the common method annotations + */ +public class Junit4AnnotationsTest { + + @BeforeClass + public static void beforeClass(){ + System.out.println("beforeClass"); + } + @Before + public void before(){ + System.out.println("before"); + } + + @Test + public void test(){ + System.out.println("test"); + } + + @After + public void after(){ + System.out.println("after"); + } + + @AfterClass + public static void afterClass(){ + System.out.println("afterClass"); + } +} Propchange: jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org