use of it.unibo.arces.wot.sepa.AggregatorTestUnit in project SEPA by arces-wot.
the class ITPattern method aggregation.
@RepeatedTest(ConfigurationProvider.REPEATED_TEST)
@Timeout(10)
public void aggregation() throws InterruptedException, SEPASecurityException, IOException, SEPAPropertiesException, SEPAProtocolException, SEPABindingsException {
logger.debug("Aggregator");
consumerRandom1 = new ConsumerTestUnit(provider, "RANDOM1");
consumerRandom1.syncSubscribe(provider.TIMEOUT, provider.NRETRY);
logger.debug("Aggregator first subscribe ok");
randomAggregator = new AggregatorTestUnit(provider, "RANDOM", "RANDOM1");
randomAggregator.syncSubscribe(provider.TIMEOUT, provider.NRETRY);
logger.debug("Aggregator second subscribe ok");
randomProducer = new Producer(provider.getJsap(), "RANDOM");
Response ret = randomProducer.update(provider.TIMEOUT, provider.NRETRY);
assertFalse(ret.isError(), ret.toString());
logger.debug("Aggregator Update Done");
randomAggregator.waitNotification();
consumerRandom1.waitNotification();
logger.debug("Aggregator stop");
}
use of it.unibo.arces.wot.sepa.AggregatorTestUnit in project SEPA by arces-wot.
the class StressUsingPAC method beginTest.
@BeforeEach
public void beginTest() throws SEPAProtocolException, SEPASecurityException, SEPAPropertiesException {
consumerAll = new ConsumerTestUnit(provider, "ALL");
randomProducer = new Producer(provider.getJsap(), "RANDOM");
randomAggregator = new AggregatorTestUnit(provider, "RANDOM", "RANDOM1");
consumerRandom1 = new ConsumerTestUnit(provider, "RANDOM1");
genericClient = new GenericClient(provider.getJsap(), this);
}
Aggregations