opendxl / opendxl-databus-client-java

OpenDXL Databus client
3 stars 15 forks source link

com.opendxl.databus.consumer.Consumer.close() throws java.lang.Exception instead of com.opendxl.databus.exception.DatabusClientRuntimeExceptio when timeOut is reached #25

Closed paguerre2 closed 4 years ago

paguerre2 commented 4 years ago

java.lang.Exception: Unexpected exception, expected but was

I tested this using a teh slim version and also when clonned the repository I checked using shadow plugin for making a fatJar. Both build versions fails when closing consumer under timeOut conditions, for instance, this is an example than was written under our tests that it was working before upgrading to the latest version:

@Test(expected = DatabusClientRuntimeException.class)
public void makeConsumerTest() {
    Properties databusProperties = new Properties();
    databusProperties.setProperty("timeout", "3000");
    summaryConsumer.makeConsumer(databusProperties);
}
paguerre2 commented 4 years ago

I'm closing this issue as Discussed w/Hugo Villalba. He will provide a solution that doesn't have conflict with newer runtime dependencies.