notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2174 - in development/planet/users/niclas/iso8583: . api/src/main/net/dpml/iso8583/data elements/src/main/net/dpml/iso8583/data/elements elements/src/test/net/dpml/iso8583/test/data/elements
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2174 - in development/planet/users/niclas/iso8583: . api/src/main/net/dpml/iso8583/data elements/src/main/net/dpml/iso8583/data/elements elements/src/test/net/dpml/iso8583/test/data/elements
- Date: Tue, 29 Mar 2005 19:45:52 -0500
Author: niclas AT hedhman.org
Date: Tue Mar 29 19:45:49 2005
New Revision: 2174
Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AbstractDataElementTestCase.java
(contents, props changed)
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/GenericDataElementTestCase.java
(contents, props changed)
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PosCapabilityTestCase.java
(contents, props changed)
Modified:
development/planet/users/niclas/iso8583/api/src/main/net/dpml/iso8583/data/DataElement.java
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingFeeTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountReconciliationTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountTransactionTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountsOriginalTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CardSequenceNumberTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ContinuationBitTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateCardholderBillingTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateReconciliationTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodeAcquiringInstitutionTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodePrimaryAccountNumberTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeLocalTransactionTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeTransmissionTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateCaptureTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateConversionTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateEffectiveTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateExpirationTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateReconciliationTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateSettlementTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/FunctionCodeTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MerchantCategoryCodeTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageErrorIndicatorTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageReasonCodeTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PosDataCodeTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PrimaryAccountNumberTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ProcessingCodeTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ReconciliationIndicatorTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/SystemsTraceAuditNumberTestCase.java
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/TransactionLifeCycleIdentificationDataTestCase.java
development/planet/users/niclas/iso8583/iso8583.iws
Log:
More testcases and 100% coverage of the DataElements made so far.
Modified:
development/planet/users/niclas/iso8583/api/src/main/net/dpml/iso8583/data/DataElement.java
==============================================================================
---
development/planet/users/niclas/iso8583/api/src/main/net/dpml/iso8583/data/DataElement.java
(original)
+++
development/planet/users/niclas/iso8583/api/src/main/net/dpml/iso8583/data/DataElement.java
Tue Mar 29 19:45:49 2005
@@ -30,6 +30,13 @@
*/
public interface DataElement
{
+ /** Returns the name of the DataElement.
+ *
+ * @return the ISO8583:1-2003 name, normalized to DPML naming standard.
+ *
+ */
+ String getName();
+
/** Instructs the DataElement to populate the ISOMsg object.
* <p>
* <code>DataElement</code> implementations are responsible to know
@@ -65,7 +72,7 @@
* that has previously been set with the <code>set()</code>
* method.
*/
- Object get();
+ String get();
/** Sets the value object of the DataElement.
* <p>
Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java
Tue Mar 29 19:45:49 2005
@@ -106,7 +106,7 @@
* that has previously been set with the <code>set()</code>
* method.
*/
- public Object get()
+ public String get()
{
return m_value;
}
Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AbstractDataElementTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AbstractDataElementTestCase.java
Tue Mar 29 19:45:49 2005
@@ -0,0 +1,109 @@
+package net.dpml.iso8583.test.data.elements;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.DataElement;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.elements.AbstractDataElement;
+import net.dpml.iso8583.data.representation.N;
+import net.dpml.logging.Logger;
+import net.dpml.metro.unit.TestLogger;
+import org.jpos.iso.ISOMsg;
+import org.jpos.iso.ISOException;
+
+public class AbstractDataElementTestCase
+ extends TestCase
+{
+
+ private TestDataElement m_element1;
+ private TestDataElement m_element2;
+ private ISOMsg m_msg;
+
+ public void setUp()
+ throws Exception
+ {
+ Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
+ m_element1 = new TestDataElement( logger );
+ logger = new TestLogger( System.out, TestLogger.LEVEL_INFO );
+ m_element2 = new TestDataElement( logger );
+ m_msg = new ISOMsg();
+ m_msg.set( 0, "1804");
+ }
+
+ public void testRepresentation()
+ throws Exception
+ {
+ Representation rep = m_element1.getRepresentation();
+ assertEquals( new N( 10 ), rep );
+ }
+
+ public void testISONumber()
+ throws Exception
+ {
+ int n = m_element1.getIsoBitNumber();
+ assertEquals( 55, n );
+ }
+
+ public void testSet()
+ throws Exception
+ {
+ m_element1.set( "0123456789" );
+ String value = m_element1.get();
+ assertEquals( "0123456789", value );
+ }
+
+ public void testPopulate1()
+ throws Exception
+ {
+ m_element1.populate( m_msg, false );
+ assertFalse( m_msg.hasField( 55 ) );
+ }
+
+ public void testPopulate2()
+ throws Exception
+ {
+ try
+ {
+ m_element2.populate( m_msg, true );
+ fail( "required + null passed" );
+ } catch( ISOException e )
+ {
+ // expected
+ assertFalse( m_msg.hasField( 55 ) );
+ }
+ }
+ public void testPopulate3()
+ throws Exception
+ {
+ m_element1.set( "0123456789" );
+ m_element1.populate( m_msg, false );
+ assertTrue( m_msg.hasField( 55 ) );
+ }
+
+ public void testPopulate4()
+ throws Exception
+ {
+ m_element1.set( "0123456789" );
+ m_element1.populate( m_msg, true );
+ assertTrue( m_msg.hasField( 55 ) );
+ }
+
+
+ private class TestDataElement extends AbstractDataElement
+ implements DataElement
+ {
+ private TestDataElement( Logger logger )
+ {
+ super( logger );
+ }
+
+ public Representation getRepresentation()
+ {
+ return new N( 10 );
+ }
+
+ public int getIsoBitNumber()
+ {
+ return 55;
+ }
+ }
+}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingFeeTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingFeeTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingFeeTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- AmountCardholderBillingFee m_element;
+ private AmountCardholderBillingFee m_element1;
+ private AmountCardholderBillingFee m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new AmountCardholderBillingFee( logger, params );
+ m_element1 = new AmountCardholderBillingFee( logger, params );
+ map.put( "value", "012345678901" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new AmountCardholderBillingFee( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 12 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 8, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- AmountCardholderBilling m_element;
+ private AmountCardholderBilling m_element1;
+ private AmountCardholderBilling m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new AmountCardholderBilling( logger, params );
+ m_element1 = new AmountCardholderBilling( logger, params );
+ map.put( "value", "0123456789123456" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new AmountCardholderBilling( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 16 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 6, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountReconciliationTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountReconciliationTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountReconciliationTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- AmountReconciliation m_element;
+ private AmountReconciliation m_element1;
+ private AmountReconciliation m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new AmountReconciliation( logger, params );
+ m_element1 = new AmountReconciliation( logger, params );
+ map.put( "value", "0123456789123456" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new AmountReconciliation( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 16 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 5, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountTransactionTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountTransactionTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountTransactionTestCase.java
Tue Mar 29 19:45:49 2005
@@ -2,6 +2,7 @@
import junit.framework.TestCase;
import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.DataElement;
import net.dpml.iso8583.data.elements.AmountTransaction;
import net.dpml.iso8583.data.representation.N;
import net.dpml.logging.Logger;
@@ -15,7 +16,8 @@
extends TestCase
{
- AmountTransaction m_element;
+ private AmountTransaction m_element1;
+ private AmountTransaction m_element2;
public void setUp()
throws Exception
@@ -23,21 +25,31 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new AmountTransaction( logger, params );
+ m_element1 = new AmountTransaction( logger, params );
+ map.put( "value", "0123456789123456" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new AmountTransaction( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 16 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 4, n );
+ }
+ public void testSubElements()
+ {
+ DataElement[] subs = m_element1.getSubElements();
+ assertEquals( "CurrencyCodeAmountTransaction", subs[0].getName() );
+ assertEquals( "CurrencyMinorUnitAmountTransaction",
subs[1].getName() );
+ assertEquals( "ValueAmountTransaction", subs[2].getName() );
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountsOriginalTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountsOriginalTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/AmountsOriginalTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- AmountsOriginal m_element;
+ private AmountsOriginal m_element1;
+ private AmountsOriginal m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new AmountsOriginal( logger, params );
+ m_element1 = new AmountsOriginal( logger, params );
+ map.put( "value", "01234567890123456789012345678912" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new AmountsOriginal( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 32 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 30, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CardSequenceNumberTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CardSequenceNumberTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CardSequenceNumberTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- CardSequenceNumber m_element;
+ private CardSequenceNumber m_element1;
+ private CardSequenceNumber m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new CardSequenceNumber( logger, params );
+ m_element1 = new CardSequenceNumber( logger, params );
+ map.put( "value", "012" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new CardSequenceNumber( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 3 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 23, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ContinuationBitTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ContinuationBitTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ContinuationBitTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- ContinuationBit m_element;
+ private ContinuationBit m_element1;
+ private ContinuationBit m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new ContinuationBit( logger, params );
+ m_element1 = new ContinuationBit( logger, params );
+ map.put( "value",
"0000111100001111000011110000111100001111000011110000111100001111" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new ContinuationBit( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new B( 8 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 1, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateCardholderBillingTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateCardholderBillingTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateCardholderBillingTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- ConversionRateCardholderBilling m_element;
+ private ConversionRateCardholderBilling m_element1;
+ private ConversionRateCardholderBilling m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new ConversionRateCardholderBilling( logger, params );
+ m_element1 = new ConversionRateCardholderBilling( logger, params );
+ map.put( "value", "01234567" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new ConversionRateCardholderBilling( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 8 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 10, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateReconciliationTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateReconciliationTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ConversionRateReconciliationTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- ConversionRateReconciliation m_element;
+ private ConversionRateReconciliation m_element1;
+ private ConversionRateReconciliation m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new ConversionRateReconciliation( logger, params );
+ m_element1 = new ConversionRateReconciliation( logger, params );
+ map.put( "value", "01234567" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new ConversionRateReconciliation( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 8 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 9, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodeAcquiringInstitutionTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodeAcquiringInstitutionTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodeAcquiringInstitutionTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- CountryCodeAcquiringInstitution m_element;
+ private CountryCodeAcquiringInstitution m_element1;
+ private CountryCodeAcquiringInstitution m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new CountryCodeAcquiringInstitution( logger, params );
+ m_element1 = new CountryCodeAcquiringInstitution( logger, params );
+ map.put( "value", "012" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new CountryCodeAcquiringInstitution( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 3 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 19, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodePrimaryAccountNumberTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodePrimaryAccountNumberTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/CountryCodePrimaryAccountNumberTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- CountryCodePrimaryAccountNumber m_element;
+ private CountryCodePrimaryAccountNumber m_element1;
+ private CountryCodePrimaryAccountNumber m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new CountryCodePrimaryAccountNumber( logger, params );
+ m_element1 = new CountryCodePrimaryAccountNumber( logger, params );
+ map.put( "value", "012" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new CountryCodePrimaryAccountNumber( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 3 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 20, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeLocalTransactionTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeLocalTransactionTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeLocalTransactionTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateAndTimeLocalTransaction m_element;
+ private DateAndTimeLocalTransaction m_element1;
+ private DateAndTimeLocalTransaction m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateAndTimeLocalTransaction( logger, params );
+ m_element1 = new DateAndTimeLocalTransaction( logger, params );
+ map.put( "value", "01234567890123" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateAndTimeLocalTransaction( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 14 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 12, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeTransmissionTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeTransmissionTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateAndTimeTransmissionTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateAndTimeTransmission m_element;
+ private DateAndTimeTransmission m_element1;
+ private DateAndTimeTransmission m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateAndTimeTransmission( logger, params );
+ m_element1 = new DateAndTimeTransmission( logger, params );
+ map.put( "value", "0123456789" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateAndTimeTransmission( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 10 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 7, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateCaptureTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateCaptureTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateCaptureTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateCapture m_element;
+ private DateCapture m_element1;
+ private DateCapture m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateCapture( logger, params );
+ m_element1 = new DateCapture( logger, params );
+ map.put( "value", "0123" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateCapture( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 4 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 17, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateConversionTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateConversionTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateConversionTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateConversion m_element;
+ private DateConversion m_element1;
+ private DateConversion m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateConversion( logger, params );
+ m_element1 = new DateConversion( logger, params );
+ map.put( "value", "0123" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateConversion( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 4 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 16, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateEffectiveTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateEffectiveTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateEffectiveTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateEffective m_element;
+ private DateEffective m_element1;
+ private DateEffective m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateEffective( logger, params );
+ m_element1 = new DateEffective( logger, params );
+ map.put( "value", "012345" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateEffective( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 6 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 13, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateExpirationTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateExpirationTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateExpirationTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateExpiration m_element;
+ private DateExpiration m_element1;
+ private DateExpiration m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateExpiration( logger, params );
+ m_element1 = new DateExpiration( logger, params );
+ map.put( "value", "0123" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateExpiration( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 4 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 14, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateReconciliationTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateReconciliationTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateReconciliationTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateReconciliation m_element;
+ private DateReconciliation m_element1;
+ private DateReconciliation m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateReconciliation( logger, params );
+ m_element1 = new DateReconciliation( logger, params );
+ map.put( "value", "01234567" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateReconciliation( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 8 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 28, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateSettlementTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateSettlementTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/DateSettlementTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- DateSettlement m_element;
+ private DateSettlement m_element1;
+ private DateSettlement m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new DateSettlement( logger, params );
+ m_element1 = new DateSettlement( logger, params );
+ map.put( "value", "01234567" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new DateSettlement( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 8 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 15, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/FunctionCodeTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/FunctionCodeTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/FunctionCodeTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- FunctionCode m_element;
+ private FunctionCode m_element1;
+ private FunctionCode m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new FunctionCode( logger, params );
+ m_element1 = new FunctionCode( logger, params );
+ map.put( "value", "012" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new FunctionCode( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 3 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 24, n );
-
}
}
Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/GenericDataElementTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/GenericDataElementTestCase.java
Tue Mar 29 19:45:49 2005
@@ -0,0 +1,42 @@
+package net.dpml.iso8583.test.data.elements;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.elements.GenericDataElement;
+import net.dpml.iso8583.data.representation.N;
+import net.dpml.logging.Logger;
+import net.dpml.metro.unit.TestLogger;
+
+public class GenericDataElementTestCase
+ extends TestCase
+{
+
+ private GenericDataElement m_element1;
+
+ public void setUp()
+ throws Exception
+ {
+ Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
+ m_element1 = new GenericDataElement( logger, new N( 5 ),
"test-field", 3 );
+ }
+
+ public void testRepresentation()
+ throws Exception
+ {
+ Representation rep = m_element1.getRepresentation();
+ assertEquals( new N( 5 ), rep );
+ }
+
+ public void testISONumber()
+ throws Exception
+ {
+ int n = m_element1.getIsoBitNumber();
+ assertEquals( 3, n );
+ }
+
+ public void testName()
+ throws Exception
+ {
+ assertEquals( "test-field", m_element1.getName() );
+ }
+}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MerchantCategoryCodeTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MerchantCategoryCodeTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MerchantCategoryCodeTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- MerchantCategoryCode m_element;
+ private MerchantCategoryCode m_element1;
+ private MerchantCategoryCode m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new MerchantCategoryCode( logger, params );
+ m_element1 = new MerchantCategoryCode( logger, params );
+ map.put( "value", "0123" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new MerchantCategoryCode( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 4 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 26, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageErrorIndicatorTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageErrorIndicatorTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageErrorIndicatorTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- MessageErrorIndicator m_element;
+ private MessageErrorIndicator m_element1;
+ private MessageErrorIndicator m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new MessageErrorIndicator( logger, params );
+ m_element1 = new MessageErrorIndicator( logger, params );
+ map.put( "value", "0123iuy347dfhu394fy345678901" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new MessageErrorIndicator( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new VariableANSB( 140 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 18, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageReasonCodeTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageReasonCodeTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/MessageReasonCodeTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- MessageReasonCode m_element;
+ private MessageReasonCode m_element1;
+ private MessageReasonCode m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new MessageReasonCode( logger, params );
+ m_element1 = new MessageReasonCode( logger, params );
+ map.put( "value", "0123" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new MessageReasonCode( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 4 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 25, n );
-
}
}
Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PosCapabilityTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PosCapabilityTestCase.java
Tue Mar 29 19:45:49 2005
@@ -0,0 +1,46 @@
+package net.dpml.iso8583.test.data.elements;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.elements.PosCapability;
+import net.dpml.iso8583.data.representation.ANB;
+import net.dpml.logging.Logger;
+import net.dpml.metro.unit.TestLogger;
+import net.dpml.metro.unit.TestParametersBuilder;
+import net.dpml.parameters.Parameters;
+
+import java.util.HashMap;
+
+public class PosCapabilityTestCase
+ extends TestCase
+{
+
+ private PosCapability m_element1;
+ private PosCapability m_element2;
+
+ public void setUp()
+ throws Exception
+ {
+ Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
+ HashMap map = new HashMap();
+ Parameters params = TestParametersBuilder.buildFromMap( map );
+ m_element1 = new PosCapability( logger, params );
+ map.put( "value", "01234567890123456789abcdefg" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new PosCapability( logger, params );
+ }
+
+ public void testRepresentation()
+ throws Exception
+ {
+ Representation rep = m_element1.getRepresentation();
+ assertEquals( new ANB( 27 ), rep );
+ }
+
+ public void testISONumber()
+ throws Exception
+ {
+ int n = m_element1.getIsoBitNumber();
+ assertEquals( 27, n );
+ }
+}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PosDataCodeTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PosDataCodeTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PosDataCodeTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- PosDataCode m_element;
+ private PosDataCode m_element1;
+ private PosDataCode m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new PosDataCode( logger, params );
+ m_element1 = new PosDataCode( logger, params );
+ map.put( "value",
"00001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111"
);
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new PosDataCode( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new B( 16 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 22, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PrimaryAccountNumberTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PrimaryAccountNumberTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PrimaryAccountNumberTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- PrimaryAccountNumber m_element;
+ private PrimaryAccountNumber m_element1;
+ private PrimaryAccountNumber m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new PrimaryAccountNumber( logger, params );
+ m_element1 = new PrimaryAccountNumber( logger, params );
+ map.put( "value", "012345672348901" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new PrimaryAccountNumber( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
- assertEquals( new VariableN(19), rep );
+ Representation rep = m_element1.getRepresentation();
+ assertEquals( new VariableN( 19 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 2, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ProcessingCodeTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ProcessingCodeTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ProcessingCodeTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- ProcessingCode m_element;
+ private ProcessingCode m_element1;
+ private ProcessingCode m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new ProcessingCode( logger, params );
+ m_element1 = new ProcessingCode( logger, params );
+ map.put( "value", "012abc" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new ProcessingCode( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new AN( 6 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 3, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ReconciliationIndicatorTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ReconciliationIndicatorTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/ReconciliationIndicatorTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- ReconciliationIndicator m_element;
+ private ReconciliationIndicator m_element1;
+ private ReconciliationIndicator m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new ReconciliationIndicator( logger, params );
+ m_element1 = new ReconciliationIndicator( logger, params );
+ map.put( "value", "012" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new ReconciliationIndicator( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
+ Representation rep = m_element1.getRepresentation();
assertEquals( new N( 3 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 29, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/SystemsTraceAuditNumberTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/SystemsTraceAuditNumberTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/SystemsTraceAuditNumberTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- SystemsTraceAuditNumber m_element;
+ private SystemsTraceAuditNumber m_element1;
+ private SystemsTraceAuditNumber m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new SystemsTraceAuditNumber( logger, params );
+ m_element1 = new SystemsTraceAuditNumber( logger, params );
+ map.put( "value", "012345678901" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new SystemsTraceAuditNumber( logger, params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
- assertEquals( new N(12), rep );
+ Representation rep = m_element1.getRepresentation();
+ assertEquals( new N( 12 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 11, n );
-
}
}
Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/TransactionLifeCycleIdentificationDataTestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/TransactionLifeCycleIdentificationDataTestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/TransactionLifeCycleIdentificationDataTestCase.java
Tue Mar 29 19:45:49 2005
@@ -15,7 +15,8 @@
extends TestCase
{
- TransactionLifeCycleIdentificationData m_element;
+ private TransactionLifeCycleIdentificationData m_element1;
+ private TransactionLifeCycleIdentificationData m_element2;
public void setUp()
throws Exception
@@ -23,21 +24,23 @@
Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
HashMap map = new HashMap();
Parameters params = TestParametersBuilder.buildFromMap( map );
- m_element = new TransactionLifeCycleIdentificationData( logger,
params );
+ m_element1 = new TransactionLifeCycleIdentificationData( logger,
params );
+ map.put( "value", "abcdefghij012345678901" );
+ params = TestParametersBuilder.buildFromMap( map );
+ m_element2 = new TransactionLifeCycleIdentificationData( logger,
params );
}
public void testRepresentation()
throws Exception
{
- Representation rep = m_element.getRepresentation();
- assertEquals( new ANS(22), rep );
+ Representation rep = m_element1.getRepresentation();
+ assertEquals( new ANS( 22 ), rep );
}
public void testISONumber()
throws Exception
{
- int n = m_element.getIsoBitNumber();
+ int n = m_element1.getIsoBitNumber();
assertEquals( 21, n );
-
}
}
Modified: development/planet/users/niclas/iso8583/iso8583.iws
==============================================================================
--- development/planet/users/niclas/iso8583/iso8583.iws (original)
+++ development/planet/users/niclas/iso8583/iso8583.iws Tue Mar 29 19:45:49
2005
@@ -146,73 +146,73 @@
<option name="HIDE_WARNINGS" value="false" />
</component>
<component name="FileEditorManager" split-orientation="vertical"
split-proportion="0.5">
- <first-group
selected-file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/XX.java">
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/MessageErrorIndicator.java"
pinned="false">
+ <first-group
selected-file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/AmountTransactionTestCase.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/GenericDataElementTestCase.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1993"
selection-end="1993" vertical-scroll-proportion="0.54988915">
+ <state line="42" column="0" selection-start="1082"
selection-end="1082" vertical-scroll-proportion="1.2305987">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/MessageReasonCode.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1949"
selection-end="1949" vertical-scroll-proportion="0.6496674">
+ <state line="26" column="22" selection-start="867"
selection-end="867" vertical-scroll-proportion="0.20642202">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosCapability.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountCardholderBilling.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1934"
selection-end="1934" vertical-scroll-proportion="0.54988915">
+ <state line="36" column="13" selection-start="1215"
selection-end="1215" vertical-scroll-proportion="0.3503326">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosDataCode.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1920"
selection-end="1920" vertical-scroll-proportion="0.6496674">
+ <state line="38" column="0" selection-start="1285"
selection-end="1285" vertical-scroll-proportion="-0.11238532">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PrimaryAccountNumber.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/AmountTransactionTestCase.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1980"
selection-end="1980" vertical-scroll-proportion="0.47006652">
+ <state line="51" column="40" selection-start="1624"
selection-end="1624" vertical-scroll-proportion="0.7184035">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ProcessingCode.java"
pinned="false">
+ <entry
file="file:///home/niclas/dev/opensource/sf.net/jpos/jpos/src/main/org/jpos/iso/ISOMsg.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1935"
selection-end="1935" vertical-scroll-proportion="0.54988915">
+ <state line="75" column="35" selection-start="3047"
selection-end="3047" vertical-scroll-proportion="0.49889135">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ReconciliationIndicator.java"
pinned="false">
+ <entry
file="file:///home/niclas/dev/opensource/sf.net/jpos/jpos/src/main/org/jpos/iso/ISOComponent.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1979"
selection-end="1979" vertical-scroll-proportion="0.6496674">
+ <state line="51" column="0" selection-start="2397"
selection-end="2397" vertical-scroll-proportion="-1.4634147">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/SystemsTraceAuditNumber.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/AbstractDataElementTestCase.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1980"
selection-end="1980" vertical-scroll-proportion="0.6496674">
+ <state line="65" column="22" selection-start="1735"
selection-end="1735" vertical-scroll-proportion="0.58536583">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/TransactionLifeCycleIdentificationData.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/api/src/main/net/dpml/iso8583/data/DataElement.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="2059"
selection-end="2059" vertical-scroll-proportion="0.47006652">
+ <state line="37" column="7" selection-start="1247"
selection-end="1247" vertical-scroll-proportion="0.58314854">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/XX.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="2010"
selection-end="2010" vertical-scroll-proportion="0.54988915">
+ <state line="26" column="13" selection-start="825"
selection-end="825" vertical-scroll-proportion="0.29933482">
<folding />
</state>
</provider>
@@ -233,24 +233,24 @@
<component name="J2EEProjectPane" />
<component name="NamedScopeManager" />
<component name="PackagesPane">
- <expanded_node url="" module="api" type="module" />
- <expanded_node url="net.dpml.iso8583.data" module="api" type="package" />
- <expanded_node url="net.dpml.iso8583.test.data.elements"
module="elements" type="package" />
<expanded_node url="net.dpml.iso8583" module="api" type="package" />
+ <expanded_node url="net.dpml.iso8583.test.data.elements"
module="elements" type="package" />
<expanded_node url="" module="elements" type="module" />
+ <expanded_node url="" module="api" type="module" />
<expanded_node url="net.dpml.iso8583.data.elements" module="elements"
type="package" />
+ <expanded_node url="net.dpml.iso8583.data" module="api" type="package" />
</component>
<component name="ProjectPane">
<expanded_node url="file://$PROJECT_DIR$/elements/src/test/net/dpml"
module="elements" type="directory" />
- <expanded_node
url="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data"
module="elements" type="directory" />
<expanded_node
url="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test"
module="elements" type="directory" />
- <expanded_node url="file://$PROJECT_DIR$/elements" module="elements"
type="directory" />
- <expanded_node
url="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583"
module="elements" type="directory" />
- <expanded_node
url="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/representation"
module="elements" type="directory" />
+ <expanded_node url="" module="elements" type="module" />
<expanded_node url="file://$PROJECT_DIR$/elements/src/test"
module="elements" type="directory" />
+ <expanded_node url="file://$PROJECT_DIR$/elements" module="elements"
type="directory" />
<expanded_node url="file://$PROJECT_DIR$/elements/src" module="elements"
type="directory" />
+ <expanded_node
url="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data"
module="elements" type="directory" />
+ <expanded_node
url="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/representation"
module="elements" type="directory" />
+ <expanded_node
url="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583"
module="elements" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/elements/src/test/net"
module="elements" type="directory" />
- <expanded_node url="" module="elements" type="module" />
</component>
<component name="ProjectView">
<navigator currentView="PackagesPane" splitterProportion="0.5">
@@ -308,13 +308,6 @@
<option name="POLICY_FILE"
value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
<option name="VM_PARAMETERS" />
</configuration>
- <configuration selected="false" default="true" type="Application"
factoryName="Application">
- <option name="MAIN_CLASS_NAME" />
- <option name="VM_PARAMETERS" />
- <option name="PROGRAM_PARAMETERS" />
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
- <module name="" />
- </configuration>
<configuration selected="false" default="true" type="JUnit"
factoryName="JUnit">
<module name="" />
<option name="PACKAGE_NAME" />
@@ -329,6 +322,13 @@
<value defaultName="wholeProject" />
</option>
</configuration>
+ <configuration selected="false" default="true" type="Application"
factoryName="Application">
+ <option name="MAIN_CLASS_NAME" />
+ <option name="VM_PARAMETERS" />
+ <option name="PROGRAM_PARAMETERS" />
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+ <module name="" />
+ </configuration>
</component>
<component name="SelectInManager" />
<component name="StarteamConfiguration">
@@ -376,7 +376,7 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
- <frame x="10" y="0" width="1260" height="977" extended-state="0" />
+ <frame x="10" y="0" width="1260" height="977" extended-state="1" />
<editor active="false" />
<layout>
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false"
internal_type="docked" type="docked" visible="false" weight="0.33" order="8"
/>
@@ -389,9 +389,9 @@
<window_info id="Inspection" active="false" anchor="bottom"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.4" order="6" />
<window_info id="Dependency Viewer" active="false" anchor="bottom"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.33" order="8" />
<window_info id="Ant Build" active="false" anchor="right"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.25" order="1" />
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false"
internal_type="docked" type="docked" visible="false" weight="0.32979977"
order="2" />
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false"
internal_type="docked" type="docked" visible="true" weight="0.32979977"
order="2" />
<window_info id="Hierarchy" active="false" anchor="right"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.25" order="2" />
- <window_info id="Clover" active="true" anchor="left" auto_hide="false"
internal_type="docked" type="docked" visible="true" weight="0.3294509"
order="3" />
+ <window_info id="Clover" active="true" anchor="left" auto_hide="false"
internal_type="docked" type="docked" visible="true" weight="0.30199668"
order="3" />
<window_info id="Debug" active="false" anchor="bottom"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.4" order="4" />
<window_info id="simpleUML" active="false" anchor="left"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.3294509" order="3" />
<window_info id="Commander" active="false" anchor="right"
auto_hide="false" internal_type="sliding" type="sliding" visible="false"
weight="0.4" order="0" />
@@ -469,107 +469,107 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/DateReconciliation.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/TransactionLifeCycleIdentificationDataTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1953"
selection-end="1953" vertical-scroll-proportion="0.4113924">
+ <state line="27" column="37" selection-start="1011"
selection-end="1011" vertical-scroll-proportion="0.59866965">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/DateSettlement.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ConversionRateReconciliation.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1934"
selection-end="1934" vertical-scroll-proportion="0.5063291">
+ <state line="36" column="0" selection-start="1212"
selection-end="1212" vertical-scroll-proportion="0.2594235">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/FunctionCode.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/AmountCardholderBillingFeeTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1924"
selection-end="1924" vertical-scroll-proportion="0.43037975">
+ <state line="27" column="34" selection-start="946"
selection-end="946" vertical-scroll-proportion="0.59866965">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/MerchantCategoryCode.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosCapability.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1964"
selection-end="1964" vertical-scroll-proportion="0.61814344">
+ <state line="36" column="0" selection-start="1184"
selection-end="1184" vertical-scroll-proportion="0.21507761">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/PosCapabilityTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="26" column="13" selection-start="825"
selection-end="825" vertical-scroll-proportion="-0.094936706">
+ <state line="43" column="24" selection-start="1346"
selection-end="1346" vertical-scroll-proportion="0.7920561">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/MessageErrorIndicator.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1993"
selection-end="1993" vertical-scroll-proportion="0.54988915">
+ <state line="26" column="13" selection-start="825"
selection-end="825" vertical-scroll-proportion="0.29933482">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/MessageReasonCode.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/GenericDataElementTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1949"
selection-end="1949" vertical-scroll-proportion="0.6496674">
+ <state line="42" column="0" selection-start="1082"
selection-end="1082" vertical-scroll-proportion="1.2305987">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosCapability.java">
+ <entry
file="file:///home/niclas/dev/opensource/sf.net/jpos/jpos/src/main/org/jpos/iso/ISOMsg.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1934"
selection-end="1934" vertical-scroll-proportion="0.54988915">
+ <state line="75" column="35" selection-start="3047"
selection-end="3047" vertical-scroll-proportion="0.49889135">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosDataCode.java">
+ <entry
file="file:///home/niclas/dev/opensource/sf.net/jpos/jpos/src/main/org/jpos/iso/ISOComponent.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1920"
selection-end="1920" vertical-scroll-proportion="0.6496674">
+ <state line="51" column="0" selection-start="2397"
selection-end="2397" vertical-scroll-proportion="-1.4634147">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PrimaryAccountNumber.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/AbstractDataElementTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1980"
selection-end="1980" vertical-scroll-proportion="0.47006652">
+ <state line="65" column="22" selection-start="1735"
selection-end="1735" vertical-scroll-proportion="0.58536583">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ProcessingCode.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1935"
selection-end="1935" vertical-scroll-proportion="0.54988915">
+ <state line="38" column="0" selection-start="1285"
selection-end="1285" vertical-scroll-proportion="-0.11238532">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ReconciliationIndicator.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/elements/AmountTransactionTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1979"
selection-end="1979" vertical-scroll-proportion="0.6496674">
+ <state line="51" column="40" selection-start="1624"
selection-end="1624" vertical-scroll-proportion="0.7184035">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/TransactionLifeCycleIdentificationData.java">
+ <entry
file="file://$PROJECT_DIR$/api/src/main/net/dpml/iso8583/data/DataElement.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="2059"
selection-end="2059" vertical-scroll-proportion="0.47006652">
+ <state line="37" column="7" selection-start="1247"
selection-end="1247" vertical-scroll-proportion="0.58314854">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/SystemsTraceAuditNumber.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="1980"
selection-end="1980" vertical-scroll-proportion="0.6496674">
+ <state line="26" column="22" selection-start="867"
selection-end="867" vertical-scroll-proportion="0.20642202">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/XX.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountCardholderBilling.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="12" selection-start="2010"
selection-end="2010" vertical-scroll-proportion="0.54988915">
+ <state line="36" column="13" selection-start="1215"
selection-end="1215" vertical-scroll-proportion="0.3503326">
<folding />
</state>
</provider>
- svn commit: r2174 - in development/planet/users/niclas/iso8583: . api/src/main/net/dpml/iso8583/data elements/src/main/net/dpml/iso8583/data/elements elements/src/test/net/dpml/iso8583/test/data/elements, niclas, 03/29/2005
Archive powered by MHonArc 2.6.24.