From f12d3192150db6606184ebcf8236f8b5a2f8840c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Sat, 11 Jan 2025 09:45:17 +0100 Subject: [PATCH] revert --- .../system/SystemThermoNameTagTest.java | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/test/java/neqsim/thermo/system/SystemThermoNameTagTest.java diff --git a/src/test/java/neqsim/thermo/system/SystemThermoNameTagTest.java b/src/test/java/neqsim/thermo/system/SystemThermoNameTagTest.java deleted file mode 100644 index 9ef35dc23..000000000 --- a/src/test/java/neqsim/thermo/system/SystemThermoNameTagTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package neqsim.thermo.system; - -import static org.junit.jupiter.api.Assertions.assertArrayEquals; -import static org.junit.jupiter.api.Assertions.assertTrue; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Test; -import neqsim.thermodynamicoperations.ThermodynamicOperations; - -public class SystemThermoNameTagTest { - static neqsim.thermo.system.SystemInterface testSystem = null; - - /** - *

- * setUp. - *

- */ - @BeforeAll - public static void setUp() { - testSystem = new neqsim.thermo.system.SystemPrEos(298.0, 10.0); - testSystem.addComponent("nitrogen", 0.01); - testSystem.addComponent("CO2", 0.01); - testSystem.addComponent("methane", 0.68); - testSystem.setMixingRule("classic"); - ThermodynamicOperations testOps = new ThermodynamicOperations(testSystem); - testOps.TPflash(); - testSystem.initProperties(); - } - - @Test - public void SetNameTag() { - String[] a = testSystem.getCompNames(); - String[] b = testSystem.getComponentNames(); - assertArrayEquals(a, b); - - SystemInterface tmpSystem = testSystem.clone(); - tmpSystem.setFluidName(null); - String[] c = tmpSystem.getCompNames(); - assertArrayEquals(a, c); - - String prefix = "test"; - tmpSystem.setComponentNameTag(prefix); - String[] c2 = tmpSystem.getCompNames(); - for (String str : c2) { - assertTrue(str.startsWith(prefix)); - } - } -}