Ejemplo n.º 1
0
  @Test
  public void testIssue288_test2() throws DecodingException {
    String lsml = "lsml://rQAAFwAAAAAAAAAAAAAAQapmxMmTJkwmTJkwFvpkyZMAmTJh";
    Base64LoadoutCoder coder = new Base64LoadoutCoder();
    LoadoutStandard loaded = (LoadoutStandard) coder.parse(lsml);

    OpSetHeatSinkType cut = new OpSetHeatSinkType(null, loaded, UpgradeDB.DOUBLE_HEATSINKS);
    cut.apply();

    for (HeatSink item : loaded.items(HeatSink.class)) {
      assertNotEquals(item, ItemDB.SHS);
    }
  }
Ejemplo n.º 2
0
  @Test
  public void testDHSBug1() throws DecodingException {
    String lsml = "lsml://rQAAawgMBA4ODAQMBA4IQapmzq6gTJgt1+H0kJkx1dSMFA==";
    Base64LoadoutCoder coder = new Base64LoadoutCoder();
    LoadoutStandard loaded = (LoadoutStandard) coder.parse(lsml);

    OpSetHeatSinkType cut = new OpSetHeatSinkType(null, loaded, UpgradeDB.DOUBLE_HEATSINKS);
    cut.apply();

    for (HeatSink item : loaded.items(HeatSink.class)) {
      assertNotEquals(item, ItemDB.SHS);
    }
  }
Ejemplo n.º 3
0
  @Test
  public void testIssue288() throws DecodingException {
    String lsml = "lsml://rRoAkUBDDVASZBRDDVAGvqmbPkyZMmTJkxmZiZMmTJkyZMJkxgjXEyZMVZOTTAI=";
    Base64LoadoutCoder coder = new Base64LoadoutCoder();
    LoadoutStandard loaded = (LoadoutStandard) coder.parse(lsml);

    OpSetHeatSinkType cut = new OpSetHeatSinkType(null, loaded, UpgradeDB.DOUBLE_HEATSINKS);
    cut.apply();

    for (HeatSink item : loaded.items(HeatSink.class)) {
      assertNotEquals(item, ItemDB.SHS);
    }
  }