Permalink
Browse files

Speeding up unit tests a bit.

  • Loading branch information...
1 parent 54e138a commit 95a4517d34332b9362fd01f59caaca33c126b924 @jwcarman committed Sep 29, 2011
@@ -19,6 +19,7 @@
import org.metastopheles.BeanMetaData;
import org.metastopheles.BeanMetaDataFactory;
import org.metastopheles.annotation.AnnotationBeanMetaDataFactory;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
@@ -31,7 +32,7 @@
*/
public class TestPropertyLabel extends AbstractWicketTestCase
{
- @BeforeMethod
+ @BeforeClass
public void installWicketopia()
{
Wicketopia.install();
@@ -43,7 +43,7 @@
// Other Methods
//----------------------------------------------------------------------------------------------------------------------
- @BeforeMethod
+ @BeforeClass
public void installWicketopia()
{
new Wicketopia().install(tester.getApplication());
@@ -19,6 +19,7 @@
import org.apache.wicket.util.tester.WicketTester;
import org.jmock.Mockery;
import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
/**
@@ -44,9 +45,15 @@ public void assertMockeryIsSatisfied()
}
@BeforeMethod
- public void constructWicketTester()
+ public void initMockery()
{
mockery = new Mockery();
+ }
+
+ @BeforeClass
+ public void constructWicketTester()
+ {
+
tester = new WicketTester();
}
}

0 comments on commit 95a4517

Please sign in to comment.