|
@@ -16,11 +16,7 @@ import static org.junit.Assert.*;
|
|
|
*/
|
|
*/
|
|
|
public class ExampleUnitTest {
|
|
public class ExampleUnitTest {
|
|
|
@Test
|
|
@Test
|
|
|
- public void addition_isCorrect() {
|
|
|
|
|
- assertEquals(4, 2 + 2);
|
|
|
|
|
- }
|
|
|
|
|
- @Test
|
|
|
|
|
- public void copyToDest() { //把导出的arr包复制到目标目录
|
|
|
|
|
|
|
+ public void copyAARtoDest() { //把导出的aar包复制到目标目录
|
|
|
String fileName = "smartbowlib-debug.aar";
|
|
String fileName = "smartbowlib-debug.aar";
|
|
|
File source = new File("E:\\UnityProject\\SmartBow\\SmartBowLib\\smartbowlib\\build\\outputs\\aar\\" + fileName);
|
|
File source = new File("E:\\UnityProject\\SmartBow\\SmartBowLib\\smartbowlib\\build\\outputs\\aar\\" + fileName);
|
|
|
File dest = new File("E:\\UnityProject\\SmartBow\\Assets\\Plugins\\Android\\" + fileName);
|
|
File dest = new File("E:\\UnityProject\\SmartBow\\Assets\\Plugins\\Android\\" + fileName);
|
|
@@ -42,4 +38,8 @@ public class ExampleUnitTest {
|
|
|
}
|
|
}
|
|
|
System.out.println("复制成功");
|
|
System.out.println("复制成功");
|
|
|
}
|
|
}
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void addition_isCorrect() {
|
|
|
|
|
+ assertEquals(4, 2 + 2);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|