package ml.shifu.shifu.core;

import org.testng.Assert;
import org.testng.annotations.Test;

public class ConvergeJudgerTest {

    @Test
    public void testJudge() {
        ConvergeJudger judger = new ConvergeJudger();
        
        Assert.assertTrue(judger.judge(1.0, 2.0));
        Assert.assertTrue(judger.judge(1.0, 1.0));
        Assert.assertFalse(judger.judge(1.0, 0.1));
    }
    
}

@@ -83,59 +83,145 @@
 ons.
-Test;%0A%0Apublic class ConvergeJudgerTest %7B%0A%0A    @Test
+BeforeClass;%0Aimport org.testng.annotations.Test;%0A%0Apublic class ConvergeJudgerTest %7B%0A%0A    private ConvergeJudger judger;%0A%0A    @BeforeClass
 %0A   
@@ -237,17 +237,13 @@
 oid 
-testJudge
+setUp
 () %7B
@@ -251,31 +251,21 @@
         
-ConvergeJudger 
+this.
 judger =
@@ -291,20 +291,58 @@
 ();%0A    
+%7D%0A%0A
     
+@Test%0A    public void testJudge() %7B
 %0A       
@@ -494,15 +494,11 @@
 ;%0A    %7D%0A
-    
 %0A%7D%0A

Use setup to initialize judger instance.