gdxapp4d/gdxapp4d-lib-warpme/src/test/java/love/distributedrebirth/warpme/ship/WaterDeviceDriverTest.java

31 lines
1 KiB
Java
Raw Normal View History

2022-02-24 02:37:00 +01:00
package love.distributedrebirth.warpme.ship;
import java.io.IOException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.x4o.xml.io.X4OConnectionException;
import org.xml.sax.SAXException;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
2022-08-24 17:33:39 +02:00
@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
2022-02-24 02:37:00 +01:00
public class WaterDeviceDriverTest {
@Test
public void testWaterDevice() throws X4OConnectionException, SAXException, IOException {
WaterDevice device = new WaterDevice();
WaterShip ship = new WaterShip();
ship.setName("tos4-mark1");
ship.setEngine("123349858934");
2022-10-11 17:31:59 +02:00
ship.addWarpSea(new WaterShipWarp("2349058490584"));
ship.addWarpSea(new WaterShipWarp("7867834823244"));
ship.addWarpSea(new WaterShipWarp("3948758927389"));
2022-02-24 02:37:00 +01:00
device.buildShip(ship);
Assertions.assertNotNull(device);
2022-03-01 19:03:03 +01:00
WaterDeviceDriver.newInstance().createWriter().writeFile(device, new java.io.File("target/out-ship.xml"));
2022-02-24 02:37:00 +01:00
}
}