svn commit: r920176 - /jakarta/jmeter/trunk/src/junit/test/Junit4AnnotationsTest.java
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
svn commit: r920175 - /jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
Author: sebb Date: Mon Mar 8 02:38:43 2010 New Revision: 920175 URL: http://svn.apache.org/viewvc?rev=920175&view=rev Log: Bit more info on JUnit4 Modified: jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml Modified: jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml?rev=920175&r1=920174&r2=920175&view=diff == --- jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml (original) +++ jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml Mon Mar 8 02:38:43 2010 @@ -1319,8 +1319,13 @@ @Test - used to find test methods and classes. The "expected" and "timeout" attributes are supported. @Before - treated the same as setUp() in JUnit3 @After - treated the same as tearDown() in JUnit3 +@BeforeClass, @AfterClass - treated as test methods so they can be run independently as required + +Note that JMeter currently runs the test methods directly, rather than leaving it to JUnit. +This is to allow the setUp/tearDown methods to be excluded from the sample time. + - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org
Bug report for JMeter [2010/03/07]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |11536|Ass|Enh|2002-08-07|Graph Results's throughput calculation includes id| |15468|New|Enh|2002-12-18|Variable expansion in posted files in HTTPSampler | |15999|New|Enh|2003-01-12|Show Results Tree is too HTTP-centric | |16370|New|Enh|2003-01-23|HTTP Request log | |16886|New|Enh|2003-02-07|Recorded requests shouldn't duplicate info in HTTP| |17248|New|Enh|2003-02-20|Graph Improvements| |17252|Ass|Enh|2003-02-20|HTML Link Parser seems not work properly. | |21695|New|Enh|2003-07-17|Unix jmeter start script assumes it is on PATH, no| |22076|New|Enh|2003-08-01|global search and replace functionality | |22510|New|Maj|2003-08-18|SSL Manager does not handle multiple client certif| |24480|New|Enh|2003-11-06|There is no good way to set checkbox based items u| |25209|New|Min|2003-12-04|missed refresh of horizontal scrollbar when switch| |25430|New|Enh|2003-12-11|Recording Controller to populate HTTP Authorisatio| |27112|New|Enh|2004-02-20|User Parameters should use scrollbars | |27895|New|Enh|2004-03-24|badly formatted JDBC output (a regression w.r.t. 1| |28502|New|Enh|2004-04-20|HTTP Resource Cache | |29331|New|Enh|2004-06-01|how to load test java applet using JMeter | |29352|New|Enh|2004-06-03|Use external store to hold samples during distribu| |29603|New|Enh|2004-06-16|Custom component developers need own resource bund| |29708|New|Enh|2004-06-21|startup delay by JMeterThread initialization | |30563|New|Enh|2004-08-10|Thread Group should have a restart loop option on | |31666|New|Enh|2004-10-12|writing sampleresults to databases| |32494|New|Enh|2004-12-02|Enhancement - scheduler should be added to Test Pl| |33305|New|Enh|2005-01-31|Visual diff and merge functionality for JMeter scr| |33878|New|Enh|2005-03-07|Function caching as option| |33940|Opn|Nor|2005-03-09|Throughput value and Graph Results "Graphing" don'| |34321|New|Enh|2005-04-06|password encryption for HTTP Authorization Manager| |35059|New|Maj|2005-05-25|RuntimeController not working correctly | |35593|New|Enh|2005-07-03|Commons chain sampler | |35670|New|Enh|2005-07-09|Default parameters not displayed | |35915|New|Enh|2005-07-28|MonitorResults does not write results n CSV format| |36378|New|Enh|2005-08-26|[PATCH] A "Thread Watcher" Listener | |36694|New|Enh|2005-09-17|substitute a value in the input XML for webservice| |36721|New|Enh|2005-09-20|webMethods Sampling Protocol Extensions | |36931|New|Enh|2005-10-05|Printable Version of the Users Manual | |37073|New|Enh|2005-10-13|Lacking Poisson timer | |37124|New|Enh|2005-10-17|Need error feedback in the GUI, noticed this by ac| |37155|New|Enh|2005-10-19|Testplan: Stop... Continue| |37156|New|Enh|2005-10-19|Formatted view of Request in Results Tree | |37160|New|Enh|2005-10-19|Scalable distributed testing | |37525|New|Enh|2005-11-16|Web service sampler does not support multipart req| |38115|Inf|Nor|2006-01-04|decode from encoded string by IE | |38387|Ass|Enh|2006-01-25|allow to read(/send) mail messages encrypted/signe| |38832|New|Nor|2006-03-02|webservice request sampler adding xmlns:xmlns | |39219|New|Nor|2006-04-06|HTTP Server: You can't stop it after File->Open | |39642|New|Enh|2006-05-23|Need a sampler forJMX mbean-servers. | |39812|New|Nor|2006-06-14|Problem with Webservice(SOAP)Request over https | |40011|New|Enh|2006-07-11|New Elements for use in JMeter| |40181|Ass|Enh|2006-08-03|Add a new Session Bean protocol extension | |40424|New|Enh|2006-09-06|Web Services proxy| |40499|New|Enh|2006-09-13|Need to be able to simulate abortive connection re| |40671|