Skip to content

Commit

Permalink
more gpi test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zubri committed Dec 23, 2020
1 parent afe52a9 commit 6a2fbaf
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
import java.util.Calendar;
import java.util.List;

import com.prowidesoftware.swift.model.mt.mt1xx.*;
import com.prowidesoftware.swift.model.mt.mt2xx.*;
import com.prowidesoftware.swift.model.mt.mt3xx.MT300;
import org.junit.jupiter.api.Test;

import com.prowidesoftware.swift.Constants;
Expand All @@ -39,8 +42,6 @@
import com.prowidesoftware.swift.model.mt.AbstractMT;
import com.prowidesoftware.swift.model.mt.MTVariant;
import com.prowidesoftware.swift.model.mt.MtCategory;
import com.prowidesoftware.swift.model.mt.mt1xx.MT102;
import com.prowidesoftware.swift.model.mt.mt1xx.MT103;
import com.prowidesoftware.swift.model.mt.mt5xx.MT540;

/**
Expand Down Expand Up @@ -448,6 +449,20 @@ public void testGetMUR() {
@Test
public void testIsGpi() {
assertTrue((new MT103()).getSwiftMessage().isGpi());
assertTrue((new MT103_STP()).getSwiftMessage().isGpi());
assertTrue((new MT103_REMIT()).getSwiftMessage().isGpi());
assertTrue((new MT199()).getSwiftMessage().isGpi());
assertTrue((new MT299()).getSwiftMessage().isGpi());
assertTrue((new MT192()).getSwiftMessage().isGpi());
assertTrue((new MT196()).getSwiftMessage().isGpi());
assertTrue((new MT202COV()).getSwiftMessage().isGpi());
assertTrue((new MT205COV()).getSwiftMessage().isGpi());

assertFalse((new MT202()).getSwiftMessage().isGpi());
assertFalse((new MT205()).getSwiftMessage().isGpi());
assertFalse((new MT540()).getSwiftMessage().isGpi());
assertFalse((new MT300()).getSwiftMessage().isGpi());
assertFalse((new MT198()).getSwiftMessage().isGpi());
}

}

0 comments on commit 6a2fbaf

Please sign in to comment.