init project
This commit is contained in:
27
mes/hd/nladmin-system/src/test/java/org/nl/BaseTest.java
Normal file
27
mes/hd/nladmin-system/src/test/java/org/nl/BaseTest.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package day01;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.nl.wql.WQLCore;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@RunWith(SpringRunner.class)
|
||||
public class BaseTest {
|
||||
@Before
|
||||
public void init() {
|
||||
WQLCore.ROOT = "org.nl";
|
||||
try {
|
||||
WQLCore.init();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
public void after() {
|
||||
System.out.println("测试结束-----------------");
|
||||
}
|
||||
}
|
||||
2
mes/hd/nladmin-system/src/test/java/org/nl/Student.java
Normal file
2
mes/hd/nladmin-system/src/test/java/org/nl/Student.java
Normal file
@@ -0,0 +1,2 @@
|
||||
package org.nl;public class Student {
|
||||
}
|
||||
10
mes/hd/nladmin-system/src/test/java/org/nl/Test3.java
Normal file
10
mes/hd/nladmin-system/src/test/java/org/nl/Test3.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package day01;
|
||||
|
||||
import org.nl.utils.StringUtils;
|
||||
|
||||
public class Test3 {
|
||||
public static void main(String[] args) {
|
||||
String localIp = StringUtils.getLocalIp();
|
||||
System.out.println(localIp);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user