@Before public void setUp() throws Exception { PropertiesEnvironment testProperties = TestHelper.testProperties(); subject.setVersUserName(testProperties.getProperty("vers.user")); subject.setVersUserPassword(testProperties.getDecryptedProperty("vers.password")); subject.setServiceURL(testProperties.getProperty("vers.url")); }
@Before public void setup() { PropertiesEnvironment testEnv = testProperties(); subject = new ServiceComponentActivationClient( testEnv.getProperty("nbi.mtosi.service.reserve.endpoint")); subject.setValueIncrementer( new DataFieldMaxValueIncrementer() { private final AtomicLong atomicLong = new AtomicLong(); @Override public String nextStringValue() throws DataAccessException { return "" + atomicLong.getAndIncrement(); } @Override public long nextLongValue() throws DataAccessException { return atomicLong.getAndIncrement(); } @Override public int nextIntValue() throws DataAccessException { return (int) atomicLong.getAndIncrement(); } }); }
@Before public void init() { PropertiesEnvironment testEnvironment = testProperties(); subject = new IddLiveClient( testEnvironment.getProperty("idd.user"), testEnvironment.getDecryptedProperty("idd.password"), testEnvironment.getProperty("idd.url")); }