use of com.axway.ats.rbv.model.MatchableNotOpenException in project ats-framework by Axway.
the class Test_MatchableNotOpenException method constructors.
@Test
public void constructors() {
MatchableNotOpenException exception;
exception = new MatchableNotOpenException("test");
assertEquals("test", exception.getMessage());
assertNull(exception.getCause());
Exception helperException = new Exception();
exception = new MatchableNotOpenException("test", helperException);
assertEquals("test", exception.getMessage());
assertEquals(helperException, exception.getCause());
exception = new MatchableNotOpenException(helperException);
assertEquals("java.lang.Exception", exception.getMessage());
assertEquals(helperException, exception.getCause());
}
Aggregations