Fixing formatting issues.
@@ -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 {
