Bael 1864 (#4727)
* running project without building tests * include the DataCheck class * Update TestFail.java
This commit is contained in:
parent
a8b0d47482
commit
d6ecd16755
@ -48,8 +48,10 @@
|
|||||||
<exclude>DataTest.java</exclude>
|
<exclude>DataTest.java</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
<includes>
|
<includes>
|
||||||
|
<include>TestFail.java</include>
|
||||||
<include>DataCheck.java</include>
|
<include>DataCheck.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
<testFailureIgnore>true</testFailureIgnore>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
15
maven/src/test/java/testfail/TestFail.java
Normal file
15
maven/src/test/java/testfail/TestFail.java
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user