Fixing formatting issues.

This commit is contained in:
Bruno Fontana 2020-09-22 20:54:25 -03:00
parent 9f51e1c6e5
commit 9a8f92de76

View File

@ -13,23 +13,26 @@ import org.junit.Test;
public class ConditionallyIgnoreTestsUnitTest {
@Test public void whenAssumeThatAndOSIsLinux_thenRunTest() {
@Test
public void whenAssumeThatAndOSIsLinux_thenRunTest() {
assumeThat(getOsName(), is("Linux"));
assertEquals("run", "RUN".toLowerCase());
}
@Test public void whenAssumeTrueAndOSIsLinux_thenRunTest() {
final int codeVersion = 1;
@Test
public void whenAssumeTrueAndOSIsLinux_thenRunTest() {
assumeTrue(isExpectedOS(getOsName()));
assertEquals("run", "RUN".toLowerCase());
}
@Test public void whenAssumeFalseAndOSIsLinux_thenIgnore() {
@Test
public void whenAssumeFalseAndOSIsLinux_thenIgnore() {
assumeFalse(isExpectedOS(getOsName()));
assertEquals("run", "RUN".toLowerCase());
}
@Test public void whenAssumeNotNullAndNotNullOSVersion_thenIgnore() {
@Test
public void whenAssumeNotNullAndNotNullOSVersion_thenRun() {
assumeNotNull(getOsName());
assertEquals("run", "RUN".toLowerCase());
}
@ -37,7 +40,8 @@ public class ConditionallyIgnoreTestsUnitTest {
/**
* Let's use a different example here.
*/
@Test public void whenAssumeNoExceptionAndExceptionThrown_thenIgnore() {
@Test
public void whenAssumeNoExceptionAndExceptionThrown_thenIgnore() {
assertEquals("everything ok", "EVERYTHING OK".toLowerCase());
String t = null;
try {