org.junit.Assert



API Populatity

168 Client projects

Project: org.junit

Project hazelcast/hazelcast in file ...com.hazelcast.spring.context.SomeRunnableTask.java (2014-02-27)
@@ -16,7 +16,6 @@
 
 package com.hazelcast.spring.context;
 
-import org.junit.Assert;
 import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.ApplicationContext;
@@ -34,6 +33,8 @@ import static org.junit.Assert.assertNotNull;
 @SpringAware
 public class SomeRunnableTask implements Runnable, Serializable, ApplicationContextAware {
 
+    private static final long serialVersionUID = 5851289963628278937L;
+
     private transient ApplicationContext context;
 
     @Autowired
Project 0xdata/h2o in file ...60/src.test.java.hex.singlenoderf.SpeeDRFTest.java (2014-07-23)
@@ -1,5 +1,6 @@
 package hex.singlenoderf;
 
+import org.junit.Assert;
 import static org.junit.Assert.assertEquals;
 import org.junit.BeforeClass;
 import water.*;
@@ -51,6 +52,7 @@ public class SpeeDRFTest extends TestUtil {
 
     spdrf.invoke();
     SpeeDRFModel m = UKV.get(spdrf.dest());
+    Assert.assertTrue(m.get_params().state == Job.JobState.DONE); //HEX-1817
 
     assertEquals("Number of classes", 2,  m.classes());
     assertEquals("Number of trees", 3, m.size());
@@ -77,6 +79,7 @@ public class SpeeDRFTest extends TestUtil {
 
     spdrf.invoke();
     SpeeDRFModel m = UKV.get(spdrf.dest());
+    Assert.assertTrue(m.get_params().state == Job.JobState.DONE); //HEX-1817
 
     assertEquals("Number of classes", 7,  m.classes());
     assertEquals("Number of trees", 8, m.size());
Project 0xdata/h2o in file ...b5b96e5087c237e5d9/src.test.java.hex.GLMTest2.java (2014-07-23)
@@ -1,5 +1,6 @@
 package hex;
 
+import org.junit.Assert;
 import static org.junit.Assert.assertEquals;
 import hex.FrameTask.DataInfo;
 import hex.glm.*;
@@ -43,6 +44,7 @@ public class GLMTest2  extends TestUtil {
      new GLM2("GLM test of gaussian(linear) regression.",Key.make(),modelKey,dinfo,glm,new double[]{0},0).fork().get();
      model = DKV.get(modelKey).get();
      testHTML(model);
+     Assert.assertTrue(model.get_params().state == Job.JobState.DONE); //HEX-1817
      HashMap<String, Double> coefs = model.coefficients();
      assertEquals(0.0,coefs.get("Intercept"),1e-4);
      assertEquals(0.1,coefs.get("x"),1e-4);
@@ -236,6 +238,7 @@ public class GLMTest2  extends TestUtil {
       new GLM2("GLM test on prostate.",Key.make(),modelKey,dinfo,glm,new double[]{0},0).fork().get();
 
       model = DKV.get(modelKey).get();
+      Assert.assertTrue(model.get_params().state == Job.JobState.DONE); //HEX-1817
       testHTML(model);
       HashMap<String, Double> coefs = model.coefficients();
       for(int i = 0; i < cfs1.length; ++i)