mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-03 13:30:25 +07:00
Re-enabled mod unit tests
This commit is contained in:
parent
5d1ec319bc
commit
46b88092db
@ -13,17 +13,14 @@ import static org.junit.jupiter.api.Assertions.*;
|
|||||||
//- it is probably the mod with the most json, and as such covers a lot of classes
|
//- it is probably the mod with the most json, and as such covers a lot of classes
|
||||||
//- it is popular enough in the mod browser
|
//- it is popular enough in the mod browser
|
||||||
//- I am somewhat familiar with its files & the type of content it adds
|
//- I am somewhat familiar with its files & the type of content it adds
|
||||||
public class ModTestExotic extends GenericModTest{
|
public class ModTestAllure extends GenericModTest{
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void begin(){
|
public void begin(){
|
||||||
//TODO broken as of 136+
|
grabMod("https://github.com/BlueWolf3682/Allure/archive/4150f74db1ea6058dc090959cf0fe5dc9d239e37.zip");
|
||||||
if(true) return;
|
checkExistence("allure");
|
||||||
|
|
||||||
grabMod("https://github.com/BlueWolf3682/Exotic-Mod/archive/08c861398ac9c3d1292132f9a110e17e06294a90.zip");
|
UnitType type = Vars.content.unit("allure-0b11-exodus");
|
||||||
checkExistence("exotic-mod");
|
|
||||||
|
|
||||||
UnitType type = Vars.content.units().find(u -> u.name.equals("exotic-mod-luminance"));
|
|
||||||
assertNotNull(type, "A mod unit must be loaded.");
|
assertNotNull(type, "A mod unit must be loaded.");
|
||||||
assertTrue(type.weapons.size > 0, "A mod unit must have a weapon.");
|
assertTrue(type.weapons.size > 0, "A mod unit must have a weapon.");
|
||||||
|
|
@ -16,10 +16,7 @@ public class ModTestBM extends GenericModTest{
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void begin(){
|
public void begin(){
|
||||||
//TODO broken as of 136+
|
grabMod("https://github.com/sk7725/BetaMindy/releases/download/v1.11/BetaMindy.jar");
|
||||||
if(true) return;
|
|
||||||
|
|
||||||
grabMod("https://github.com/sk7725/BetaMindy/releases/download/v0.955/BetaMindy.jar");
|
|
||||||
|
|
||||||
checkExistence("betamindy");
|
checkExistence("betamindy");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user