@BeforeClass public static void before() { PropertyBag testProps = TestHelpers.getProperties(WrqConnection.class); HOST_NAME = testProps.getStringProperty("HOST_NAME"); SYSTEM_PASSWORD = testProps.getStringProperty("SYSTEM_PASSWORD"); SYSTEM_USER = testProps.getStringProperty("SYSTEM_USER"); System.out.println("HOST_NAME=" + HOST_NAME); System.out.println("SYSTEM_USER=" + SYSTEM_USER); }
@BeforeClass public static void before() { PropertyBag testProps = TestHelpers.getProperties(SpmlConnector.class); HOST_NAME = testProps.getStringProperty("HOST_NAME"); SYSTEM_PASSWORD = testProps.getStringProperty("SYSTEM_PASSWORD"); SYSTEM_USER = testProps.getStringProperty("SYSTEM_USER"); TEST_USER = "******"; Assert.assertNotNull("HOST_NAME must be specified", HOST_NAME); Assert.assertNotNull("SYSTEM_PASSWORD must be specified", SYSTEM_PASSWORD); Assert.assertNotNull("SYSTEM_USER must be specified", SYSTEM_USER); }