Skip to content

Commit 34399f1

Browse files
committed
TheAlgorithms#1 remove junit
1 parent 68c9716 commit 34399f1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
package com.fred.spi;
22

3-
import org.junit.jupiter.api.Test;
4-
53
import java.util.ServiceLoader;
64

75
public class ServiceLoaderTest {
86

9-
@Test
10-
public void testLoad() {
7+
public static void testLoad() {
118
ServiceLoader<LogService> serviceLoader = ServiceLoader.load(LogService.class);
129
// serviceLoader.iterator();
1310
//
@@ -18,4 +15,8 @@ public void testLoad() {
1815
logService.log();
1916
}
2017
}
18+
19+
public static void main(String[] args) {
20+
testLoad();
21+
}
2122
}

0 commit comments

Comments
 (0)