|
|
@@ -1,23 +1,23 @@
|
|
|
package com.jfinal.template;
|
|
|
|
|
|
-import org.junit.After;
|
|
|
+import org.junit.AfterClass;
|
|
|
import org.junit.Assert;
|
|
|
-import org.junit.Before;
|
|
|
+import org.junit.BeforeClass;
|
|
|
import org.junit.Test;
|
|
|
import com.jfinal.kit.Kv;
|
|
|
|
|
|
public class EngineTest {
|
|
|
|
|
|
- Engine engine;
|
|
|
+ static Engine engine;
|
|
|
|
|
|
- @Before
|
|
|
- public void init() {
|
|
|
+ @BeforeClass
|
|
|
+ public static void init() {
|
|
|
engine = Engine.use();
|
|
|
engine.setToClassPathSourceFactory();
|
|
|
}
|
|
|
|
|
|
- @After
|
|
|
- public void exit() {
|
|
|
+ @AfterClass
|
|
|
+ public static void exit() {
|
|
|
}
|
|
|
|
|
|
@Test
|