Search in sources :

Example 6 with MatchableNotOpenException

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());
}
Also used : MatchableNotOpenException(com.axway.ats.rbv.model.MatchableNotOpenException) MatchableNotOpenException(com.axway.ats.rbv.model.MatchableNotOpenException) BaseTest(com.axway.ats.rbv.BaseTest) Test(org.junit.Test)

Aggregations

MatchableNotOpenException (com.axway.ats.rbv.model.MatchableNotOpenException)6 RbvStorageException (com.axway.ats.rbv.model.RbvStorageException)5 MessagingException (javax.mail.MessagingException)4 PublicAtsApi (com.axway.ats.common.PublicAtsApi)2 Message (javax.mail.Message)2 MimeMessage (javax.mail.internet.MimeMessage)2 FilePackage (com.axway.ats.action.objects.FilePackage)1 PackageException (com.axway.ats.action.objects.model.PackageException)1 BaseTest (com.axway.ats.rbv.BaseTest)1 MetaData (com.axway.ats.rbv.MetaData)1 MatchableAlreadyOpenException (com.axway.ats.rbv.model.MatchableAlreadyOpenException)1 RbvException (com.axway.ats.rbv.model.RbvException)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Flags (javax.mail.Flags)1 Test (org.junit.Test)1