org.fest.assertions.Assertions.assertThat-s



Project dynjs/dynjs in file ...test.java.org.dynjs.runtime.InvokeDynamicTest.java (2013-06-17)
@@ -1,11 +1,11 @@
 package org.dynjs.runtime;
 
-import static org.fest.assertions.Assertions.*;
-
 import org.dynjs.runtime.java.JavaMockery;
 import org.junit.Test;
 import org.projectodd.rephract.mop.java.DynamicMethod;
 
+import static org.fest.assertions.Assertions.assertThat;
+
 public class InvokeDynamicTest extends AbstractDynJSTestSupport {
 
     @Test
Project SonarSource/sonarqube in file ....test.java.org.sonar.process.ProcessUtilsTest.java (2014-09-30)
@@ -22,10 +22,12 @@ package org.sonar.process;
 import org.junit.Test;
 import org.sonar.test.TestUtils;
 
+import static org.fest.assertions.Assertions.assertThat;
+
 public class ProcessUtilsTest {
 
   @Test
   public void private_constructor() throws Exception {
-    TestUtils.assertPrivateConstructor(ProcessUtils.class);
+    assertThat(TestUtils.hasOnlyPrivateConstructors(ProcessUtils.class)).isTrue();
   }
 }
Project SonarSource/sonarqube in file ...lugins.core.issue.InitialOpenIssuesSensorTest.java (2013-05-31)
@@ -27,6 +27,7 @@ import org.sonar.core.issue.db.IssueDto;
 
 import java.util.Date;
 
+import static org.fest.assertions.Assertions.assertThat;
 import static org.mockito.Matchers.any;
 import static org.mockito.Matchers.anyListOf;
 import static org.mockito.Mockito.mock;
@@ -49,4 +50,10 @@ public class InitialOpenIssuesSensorTest {
     verify(issueDao).selectNonClosedIssuesByModule(1);
     verify(stack).setIssues(anyListOf(IssueDto.class), any(Date.class));
   }
+
+  @Test
+  public void test_toString() throws Exception {
+    assertThat(sensor.toString()).isEqualTo("InitialOpenIssuesSensor");
+
+  }
 }
Project SonarSource/sonarqube in file ...rc.main.java.org.sonar.api.server.ws.WsTester.java (2014-02-02)
@@ -26,7 +26,6 @@ import org.sonar.api.utils.text.JsonWriter;
 import org.sonar.api.utils.text.XmlWriter;
 
 import javax.annotation.CheckForNull;
-
 import java.io.ByteArrayOutputStream;
 import java.io.OutputStream;
 import java.io.OutputStreamWriter;
@@ -34,8 +33,6 @@ import java.net.URL;
 import java.util.HashMap;
 import java.util.Map;
 
-import static org.fest.assertions.Assertions.assertThat;
-
 /**
  * @since 4.2
  */
@@ -104,6 +101,10 @@ public class WsTester {
         return mediaType;
       }
 
+      public int status() {
+        return status;
+      }
+
       @Override
       public Response.Stream setMediaType(String s) {
         this.mediaType = s;
Project dynjs/dynjs in file ...980/src.test.java.org.dynjs.cli.ArgumentsTest.java (2013-01-03)
@@ -15,15 +15,15 @@
  */
 package org.dynjs.cli;
 
+import static org.dynjs.cli.Arguments.*;
+import static org.fest.assertions.Assertions.*;
+
 import org.junit.Before;
 import org.junit.Test;
 import org.kohsuke.args4j.CmdLineException;
 import org.kohsuke.args4j.CmdLineParser;
 import org.kohsuke.args4j.ExampleMode;
 
-import static org.dynjs.cli.Arguments.*;
-import static org.fest.assertions.Assertions.assertThat;
-
 public class ArgumentsTest {
     private CmdLineParser parser;
     private Arguments arguments;