Skip to content

Commit 05f542a

Browse files
github-actionsgithub-actions
authored andcommitted
Formatted with Google Java Formatter
1 parent 82c9ff1 commit 05f542a

16 files changed

+34
-47
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.system;
22

3-
public class FileSeparatorTest {
4-
}
3+
public class FileSeparatorTest {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.time;
22

3-
public class CalendarExample {
4-
}
3+
public class CalendarExample {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.time;
22

3-
public class DateExample {
4-
}
3+
public class DateExample {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.time;
22

3-
public class GetTime {
4-
}
3+
public class GetTime {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.time;
22

3-
public class InstantExample {
4-
}
3+
public class InstantExample {}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
package com.examplehub.basics.time;
22

3-
public class LocalDateTimeExample {
4-
5-
}
3+
public class LocalDateTimeExample {}

src/test/java/com/examplehub/basics/ints/IntOperationTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static org.junit.jupiter.api.Assertions.*;
44

55
import org.junit.jupiter.api.Test;
6-
import org.junit.jupiter.api.function.Executable;
76

87
class IntOperationTest {
98
@Test
@@ -20,9 +19,11 @@ void testDivide() {
2019
assertEquals(2, 7 / 3);
2120
assertEquals(164, 12345 / 75);
2221

23-
assertThrows(ArithmeticException.class, () -> {
24-
int division = 10 / 0;
25-
});
22+
assertThrows(
23+
ArithmeticException.class,
24+
() -> {
25+
int division = 10 / 0;
26+
});
2627
}
2728

2829
@Test
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
package com.examplehub.basics.system;
22

3+
import static org.junit.jupiter.api.Assertions.*;
4+
5+
import java.io.File;
36
import org.junit.jupiter.api.Test;
47
import org.junit.jupiter.api.condition.EnabledOnOs;
58
import org.junit.jupiter.api.condition.OS;
69

7-
import java.io.File;
8-
9-
import static org.junit.jupiter.api.Assertions.*;
10-
1110
class FileSeparatorTestTest {
1211
@Test
1312
@EnabledOnOs({OS.LINUX, OS.MAC, OS.MAC})
1413
void testOnUnixLike() {
1514
assertEquals("/", File.separator);
1615
}
16+
1717
@Test
1818
@EnabledOnOs(OS.WINDOWS)
1919
void testOnWindows() {
2020
assertEquals("\\", File.separator);
2121
}
22-
}
22+
}

src/test/java/com/examplehub/basics/time/CalendarExampleTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package com.examplehub.basics.time;
22

3-
import org.junit.jupiter.api.Test;
4-
53
import java.text.SimpleDateFormat;
64
import java.util.Calendar;
5+
import org.junit.jupiter.api.Test;
76

87
class CalendarExampleTest {
98
@Test
@@ -33,4 +32,4 @@ void testSetCustomTime() {
3332
calendar.set(Calendar.SECOND, 59);
3433
System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(calendar.getTime()));
3534
}
36-
}
35+
}

src/test/java/com/examplehub/basics/time/DateExampleTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package com.examplehub.basics.time;
22

3-
import org.junit.jupiter.api.Test;
4-
53
import java.text.SimpleDateFormat;
64
import java.util.Date;
5+
import org.junit.jupiter.api.Test;
76

87
class DateExampleTest {
98
@Test
@@ -22,4 +21,4 @@ void testSimpleDateForMate() {
2221
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
2322
System.out.println(format.format(new Date()));
2423
}
25-
}
24+
}

0 commit comments

Comments
 (0)