org.fest.assertions.Fail.fail-s



API Populatity

6 Client projects

Project: org.fest

Project SonarSource/sonarqube in file ...group.InternalGroupMembershipQueryServiceTest.java (2013-12-03)
@@ -32,6 +32,7 @@ import org.sonar.server.exceptions.NotFoundException;
 import java.util.List;
 
 import static org.fest.assertions.Assertions.assertThat;
+import static org.fest.assertions.Fail.fail;
 
 /**
  * Use Test with DB because there's no IT on this feature for the moment
@@ -91,6 +92,7 @@ public class InternalGroupMembershipQueryServiceTest extends AbstractDaoTestCase
       service.find(ImmutableMap.of(
         "user", "user_not_existing",
         "selected", "all"));
+      fail();
     } catch (Exception e) {
       assertThat(e).isInstanceOf(NotFoundException.class).hasMessage("User 'user_not_existing' does not exists.");
     }
Project SonarSource/sonarqube in file ...g.sonar.core.issue.workflow.SetResolutionTest.java (2013-04-23)
@@ -24,6 +24,7 @@ import org.sonar.api.issue.Issue;
 import org.sonar.core.issue.DefaultIssue;
 
 import static org.fest.assertions.Assertions.assertThat;
+import static org.fest.assertions.Fail.fail;
 
 public class SetResolutionTest {
   @Test
@@ -38,6 +39,7 @@ public class SetResolutionTest {
   public void resolution_should_not_be_empty() throws Exception {
     try {
       new SetResolution("");
+      fail();
     } catch (IllegalArgumentException e) {
       assertThat(e).hasMessage("Resolution must be set");
     }
Project SonarSource/sonarqube in file ....org.sonar.core.issue.workflow.TransitionTest.java (2013-04-23)
@@ -23,6 +23,7 @@ import org.junit.Test;
 import org.sonar.core.issue.DefaultIssue;
 
 import static org.fest.assertions.Assertions.assertThat;
+import static org.fest.assertions.Fail.fail;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
@@ -64,6 +65,7 @@ public class TransitionTest {
   public void key_should_be_set() throws Exception {
     try {
       Transition.builder("").from("OPEN").to("CLOSED").build();
+      fail();
     } catch (Exception e) {
       assertThat(e).hasMessage("Transition key must be set");
     }
@@ -73,6 +75,7 @@ public class TransitionTest {
   public void key_should_be_lower_case() throws Exception {
     try {
       Transition.builder("CLOSE").from("OPEN").to("CLOSED").build();
+      fail();
     } catch (Exception e) {
       assertThat(e).hasMessage("Transition key must be lower-case");
     }
@@ -82,6 +85,7 @@ public class TransitionTest {
   public void originating_status_should_be_set() throws Exception {
     try {
       Transition.builder("close").from("").to("CLOSED").build();
+      fail();
     } catch (Exception e) {
       assertThat(e).hasMessage("Originating status must be set");
     }
@@ -91,6 +95,7 @@ public class TransitionTest {
   public void destination_status_should_be_set() throws Exception {
     try {
       Transition.builder("close").from("OPEN").to("").build();
+      fail();
     } catch (Exception e) {
       assertThat(e).hasMessage("Destination status must be set");
     }