* running project without building tests

* include the DataCheck class

* Update TestFail.java
This commit is contained in:
Mher Baghinyan 2018-07-20 17:52:35 +04:00 committed by Grzegorz Piwowarek
parent a8b0d47482
commit d6ecd16755
2 changed files with 17 additions and 0 deletions

View File

@ -48,8 +48,10 @@
<exclude>DataTest.java</exclude>
</excludes>
<includes>
<include>TestFail.java</include>
<include>DataCheck.java</include>
</includes>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>

View File

@ -0,0 +1,15 @@
package testfail;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
public class TestFail {
@Test
public void whenMessageAssigned_thenItIsNotNull() {
String message = "hello there";
message = null;
assertNotNull(message);
}
}