Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2171 - in development/planet/users/niclas/iso8583: . api channels elements elements/src/main/net/dpml/iso8583/data/elements elements/src/main/net/dpml/iso8583/data/representation elements/src/test/net/dpml/iso8583/test/data/elements elements/src/test/net/dpml/iso8583/test/data/representation packaging

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT hedhman.org
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2171 - in development/planet/users/niclas/iso8583: . api channels elements elements/src/main/net/dpml/iso8583/data/elements elements/src/main/net/dpml/iso8583/data/representation elements/src/test/net/dpml/iso8583/test/data/elements elements/src/test/net/dpml/iso8583/test/data/representation packaging
  • Date: Tue, 29 Mar 2005 17:14:18 -0500

Author: niclas AT hedhman.org
Date: Tue Mar 29 17:14:16 2005
New Revision: 2171

Added:

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PrimaryAccountNumberTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ANPTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ANTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/BTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/NTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableANTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableBTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableNTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableZTestCase.java
(contents, props changed)

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/XNTestCase.java
(contents, props changed)
Modified:
development/planet/users/niclas/iso8583/api/api.iml
development/planet/users/niclas/iso8583/channels/channels.iml
development/planet/users/niclas/iso8583/elements/elements.iml

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/CountryCodePrimaryAccountNumber.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/A.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AN.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANB.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANP.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANS.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANSB.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AS.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/B.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/N.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableAN.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANS.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANSB.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableB.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableN.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableZ.java

development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/XN.java

development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ATestCase.java
development/planet/users/niclas/iso8583/iso8583.iws
development/planet/users/niclas/iso8583/packaging/packaging.iml
Log:
More testcases for the Representation package.

Modified: development/planet/users/niclas/iso8583/api/api.iml
==============================================================================
--- development/planet/users/niclas/iso8583/api/api.iml (original)
+++ development/planet/users/niclas/iso8583/api/api.iml Tue Mar 29 17:14:16
2005
@@ -12,6 +12,7 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Metro Public" level="application" />
<orderEntry type="library" name="JPos" level="project" />
+ <orderEntry type="library" name="Clover" level="application" />
<orderEntryProperties />
</component>
</module>

Modified: development/planet/users/niclas/iso8583/channels/channels.iml
==============================================================================
--- development/planet/users/niclas/iso8583/channels/channels.iml
(original)
+++ development/planet/users/niclas/iso8583/channels/channels.iml Tue
Mar 29 17:14:16 2005
@@ -15,6 +15,7 @@
<orderEntry type="library" name="junit" level="application" />
<orderEntry type="library" name="Metro Public" level="application" />
<orderEntry type="library" name="JPos" level="project" />
+ <orderEntry type="library" name="Clover" level="application" />
<orderEntryProperties />
</component>
</module>

Modified: development/planet/users/niclas/iso8583/elements/elements.iml
==============================================================================
--- development/planet/users/niclas/iso8583/elements/elements.iml
(original)
+++ development/planet/users/niclas/iso8583/elements/elements.iml Tue
Mar 29 17:14:16 2005
@@ -16,6 +16,9 @@
<orderEntry type="library" name="JPos" level="project" />
<orderEntry type="library" name="Transit" level="application" />
<orderEntry type="library" name="junit" level="application" />
+ <orderEntry type="library" name="Clover" level="application" />
+ <orderEntry type="library" name="Metro Unit" level="application" />
+ <orderEntry type="library" name="Metro Private" level="application" />
<orderEntryProperties />
</component>
</module>

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/CountryCodePrimaryAccountNumber.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/CountryCodePrimaryAccountNumber.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/elements/CountryCodePrimaryAccountNumber.java
Tue Mar 29 17:14:16 2005
@@ -18,13 +18,10 @@
package net.dpml.iso8583.data.elements;


-import net.dpml.iso8583.data.DataElement;
import net.dpml.iso8583.data.Representation;
import net.dpml.iso8583.data.representation.N;
import net.dpml.logging.Logger;
import net.dpml.parameters.Parameters;
-import org.jpos.iso.ISOException;
-import org.jpos.iso.ISOMsg;


/** <code>DataElement</code> implementation of
CountryCodePrimaryAccountNumber.
@@ -63,6 +60,11 @@
set( value );
}

+ public Representation getRepresentation()
+ {
+ return m_Representation;
+ }
+
public int getIsoBitNumber()
{
return ISO8583_BIT_NUMBER;

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/A.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/A.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/A.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class A
+public final class A
implements Representation
{

@@ -52,7 +52,32 @@
{
throw new IllegalArgumentException( "Illegal character in
string: '" + ch + "' at position " + i + "." );
}
+ }
+ }
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof A ) )
+ {
+ return false;
+ }
+
+ final A a = (A) value;

+ if( m_length != a.m_length )
+ {
+ return false;
}
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
}
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AN.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AN.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AN.java
Tue Mar 29 17:14:16 2005
@@ -20,8 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class
- AN
+public final class AN
implements Representation
{
private int m_length;
@@ -50,4 +49,30 @@
}
}
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof AN ) )
+ {
+ return false;
+ }
+
+ final AN an = (AN) value;
+
+ if( m_length != an.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANB.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANB.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANB.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class ANB
+public final class ANB
implements Representation
{

@@ -46,4 +46,30 @@
// TODO; check type
// TODO; check length
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof ANB ) )
+ {
+ return false;
+ }
+
+ final ANB anb = (ANB) value;
+
+ if( m_length != anb.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANP.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANP.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANP.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class ANP
+public final class ANP
implements Representation
{

@@ -39,8 +39,6 @@
{
if( value == null )
throw new NullArgumentException( "value" );
- if( value instanceof String == false )
- throw new IllegalArgumentException( "Incorrect type. String
expected." );
if( value.length() != m_length )
throw new IllegalArgumentException( "Incorrect length. " +
m_length + " characters expected." );
for( int i = 0; i < value.length(); i++ )
@@ -52,4 +50,30 @@
}
}
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof ANP ) )
+ {
+ return false;
+ }
+
+ final ANP anp = (ANP) value;
+
+ if( m_length != anp.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANS.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANS.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANS.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class ANS
+public final class ANS
implements Representation
{

@@ -46,4 +46,30 @@
// TODO; check type
// TODO; check length
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof ANS ) )
+ {
+ return false;
+ }
+
+ final ANS ans = (ANS) value;
+
+ if( m_length != ans.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANSB.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANSB.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/ANSB.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class ANSB
+public final class ANSB
implements Representation
{

@@ -46,4 +46,30 @@
// TODO; check type
// TODO; check length
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof ANSB ) )
+ {
+ return false;
+ }
+
+ final ANSB ansb = (ANSB) value;
+
+ if( m_length != ansb.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AS.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AS.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/AS.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class AS
+public final class AS
implements Representation
{

@@ -46,4 +46,30 @@
// TODO; check type
// TODO; check length
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof AS ) )
+ {
+ return false;
+ }
+
+ final AS as = (AS) value;
+
+ if( m_length != as.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/B.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/B.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/B.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class B
+public final class B
implements Representation
{

@@ -50,4 +50,30 @@
}
}
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof B ) )
+ {
+ return false;
+ }
+
+ final B b = (B) value;
+
+ if( m_length != b.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/N.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/N.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/N.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class N
+public final class N
implements Representation
{

@@ -50,4 +50,30 @@
}
}
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof N ) )
+ {
+ return false;
+ }
+
+ final N n = (N) value;
+
+ if( m_length != n.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableAN.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableAN.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableAN.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class VariableAN
+public final class VariableAN
implements Representation
{

@@ -50,4 +50,30 @@
}
}
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof VariableAN ) )
+ {
+ return false;
+ }
+
+ final VariableAN variableAN = (VariableAN) value;
+
+ if( m_length != variableAN.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANS.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANS.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANS.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class VariableANS
+public final class VariableANS
implements Representation
{

@@ -44,4 +44,30 @@
// TODO; check type
// TODO; check length
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof VariableANS ) )
+ {
+ return false;
+ }
+
+ final VariableANS variableANS = (VariableANS) value;
+
+ if( m_length != variableANS.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANSB.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANSB.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableANSB.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class VariableANSB
+public final class VariableANSB
implements Representation
{

@@ -44,4 +44,30 @@
// TODO; check type
// TODO; check length
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof VariableANSB ) )
+ {
+ return false;
+ }
+
+ final VariableANSB variableANSB = (VariableANSB) value;
+
+ if( m_length != variableANSB.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableB.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableB.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableB.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class VariableB
+public final class VariableB
implements Representation
{

@@ -39,10 +39,10 @@
{
if( value == null )
throw new NullArgumentException( "value" );
- if( value.length() % 8 == 0 )
- throw new IllegalArgumentException( "Incorrect length. Binary
fields must be in blocks of 8 characters: " + value );
if( value.length() > m_length * 8 )
throw new IllegalArgumentException( "Incorrect length. A maximum
of " + m_length + " characters are expected: " + value );
+ if( value.length() % 8 != 0 )
+ throw new IllegalArgumentException( "Incorrect length. Binary
fields must be in blocks of 8 characters: " + value );
for( int i = 0; i < value.length(); i++ )
{
char ch = value.charAt( i );
@@ -52,4 +52,30 @@
}
}
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof VariableB ) )
+ {
+ return false;
+ }
+
+ final VariableB variableB = (VariableB) value;
+
+ if( m_length != variableB.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableN.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableN.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableN.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class VariableN
+public final class VariableN
implements Representation
{

@@ -50,4 +50,30 @@
}
}
}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof VariableN ) )
+ {
+ return false;
+ }
+
+ final VariableN variableN = (VariableN) value;
+
+ if( m_length != variableN.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableZ.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableZ.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/VariableZ.java
Tue Mar 29 17:14:16 2005
@@ -41,6 +41,32 @@
throw new NullArgumentException( "value" );
if( value.length() > m_length )
throw new IllegalArgumentException( "Incorrect length. A maximum
of " + m_length + " characters are expected: " + value );
-
+ // TODO; Figure out how the TrackData is built up.
+ }
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof VariableZ ) )
+ {
+ return false;
+ }
+
+ final VariableZ variableZ = (VariableZ) value;
+
+ if( m_length != variableZ.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
}
}

Modified:
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/XN.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/XN.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/main/net/dpml/iso8583/data/representation/XN.java
Tue Mar 29 17:14:16 2005
@@ -20,7 +20,7 @@
import net.dpml.iso8583.data.Representation;
import net.dpml.lang.NullArgumentException;

-public class XN
+public final class XN
implements Representation
{

@@ -58,4 +58,30 @@
}

}
+
+ public boolean equals( Object value )
+ {
+ if( this == value )
+ {
+ return true;
+ }
+ if( !( value instanceof XN ) )
+ {
+ return false;
+ }
+
+ final XN xn = (XN) value;
+
+ if( m_length != xn.m_length )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return m_length;
+ }
}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PrimaryAccountNumberTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/elements/PrimaryAccountNumberTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,34 @@
+package net.dpml.iso8583.test.data.elements;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.elements.PrimaryAccountNumber;
+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 PrimaryAccountNumberTestCase
+ extends TestCase
+{
+
+ PrimaryAccountNumber m_element;
+
+ public void setUp()
+ throws Exception
+ {
+ Logger logger = new TestLogger( System.out, TestLogger.LEVEL_DEBUG );
+ HashMap map = new HashMap();
+ Parameters params = TestParametersBuilder.buildFromMap( map );
+ m_element = new PrimaryAccountNumber( logger, params );
+ }
+
+ public void testRepresentation()
+ throws Exception
+ {
+ Representation rep = m_element.getRepresentation();
+
+ }
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ANPTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ANPTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,174 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.ANP;
+
+public class ANPTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new ANP( 37 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( " abcdefghijklmnopqrstuvwxyz0123456789" );
+ m_rep.validate( "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 " );
+ m_rep.validate( " aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( " abcdefghijklmnopqrstuvwxy!0123456789" );
+ fail( "exclamation mark passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( " abcdefghijklmnopqrstuvwxy.0123456789" );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 132;
+ m_rep.validate( " abcdefghijklmnopqrstuvwxyz012345678" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( " abcdefghijklmnopqrstuvwxyz012345678-" );
+ fail( "dash passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456789" );
+ fail( "too short passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new ANP( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new ANP( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( " abcdefghijklmnopqrstuvwxyzz0123456789" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( " abcdefghijklmnopqrstuvwxyz01234567899" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( " abcdefghijklmnopqrstuvwxyz0123456789" );
+ m_rep.validate( " " );
+ }
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new ANP( 37 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new ANP( 36 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new ANP( 37 );
+ assertEquals( "equals", other, other );
+ assertEquals( "equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new ANP( 36 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ANTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ANTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,172 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+
+public class ANTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new AN( 36 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456789" );
+ m_rep.validate( "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" );
+ m_rep.validate( "aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy!0123456789" );
+ fail( "exclamation mark passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy.0123456789" );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 132;
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678-" );
+ fail( "dash passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678" );
+ fail( "too short passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new AN( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new AN( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyzz0123456789" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01234567899" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456789" );
+ }
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new AN( 36 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new AN( 35 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new AN( 36 );
+ assertEquals( "equals", other, other );
+ assertEquals( "equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new AN( 35 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+}

Modified:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ATestCase.java
==============================================================================
---
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ATestCase.java
(original)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/ATestCase.java
Tue Mar 29 17:14:16 2005
@@ -3,6 +3,7 @@
import junit.framework.TestCase;
import net.dpml.iso8583.data.Representation;
import net.dpml.iso8583.data.representation.A;
+import net.dpml.iso8583.data.representation.AN;

public class ATestCase
extends TestCase
@@ -42,7 +43,7 @@
{
try
{
- m_rep.validate( "abcdefghi!" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy!" );
fail( "exclamation mark passed" );
} catch( IllegalArgumentException e )
{
@@ -50,7 +51,7 @@
}
try
{
- m_rep.validate( "abcdefghi0" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy0" );
fail( "number passed" );
} catch( IllegalArgumentException e )
{
@@ -58,7 +59,7 @@
}
try
{
- m_rep.validate( "abcdefghi." );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy." );
fail( "dot passed" );
} catch( IllegalArgumentException e )
{
@@ -67,7 +68,7 @@
try
{
char ch = 132;
- m_rep.validate( "abcdefghi" + ch );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy" + ch );
fail( "strange char passed" );
} catch( IllegalArgumentException e )
{
@@ -89,6 +90,28 @@

}

+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new A( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new A( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
public void testValidateTooLong()
throws Exception
{
@@ -108,4 +131,35 @@
m_rep.validate( "abcdefghijklmnopqrstuvwxyz" );
}

+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new A( 26 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new A( 25 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new A( 26 );
+ assertEquals( "equals", other, other );
+ assertEquals( "AN equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new A( 25 );
+ assertTrue( "AN equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "AN", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/BTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/BTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,172 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.B;
+
+public class BTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new B( 3 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "000000001111111100000000" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "00000000111111110000000a" );
+ fail( "alphabetic passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "00000000111111110000000." );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 47;
+ m_rep.validate( "00000000111111110000000" + ch );
+ fail( "char47 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 1532;
+ m_rep.validate( "00000000111111110000000" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "00000000111111110000000" );
+ fail( "too short passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep.validate( "0000000011111111" );
+ fail( "too short passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new B( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new B( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "0000000011111111000000001" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "000000001111111100000000" );
+ }
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new B( 3 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new B( 4 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new B( 3 );
+ assertEquals( "equals", other, other );
+ assertEquals( "AN equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new B( 4 );
+ assertTrue( "AN equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "AN", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/NTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/NTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,164 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.N;
+
+public class NTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new N( 10 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "0123456789" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "a123456789" );
+ fail( "alphabetic passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "012345678." );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 47;
+ m_rep.validate( "0123456789" + ch );
+ fail( "char47 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 1532;
+ m_rep.validate( "0123456789" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "012345678" );
+ fail( "too short passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new N( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new N( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "01234567890" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "0123456789" );
+ }
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new N( 10 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new N( 11 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new N( 10 );
+ assertEquals( "equals", other, other );
+ assertEquals( "AN equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new N( 11 );
+ assertTrue( "AN equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "AN", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableANTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableANTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,211 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.VariableAN;
+
+public class VariableANTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new VariableAN( 36 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456789" );
+ m_rep.validate( "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" );
+ m_rep.validate( "aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy!0123456789" );
+ fail( "exclamation mark passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy.0123456789" );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 132;
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678-" );
+ fail( "dash passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01234567" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01234" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwx" );
+ m_rep.validate( "abcdefghijklmnopqrstuvw" );
+ m_rep.validate( "abcdefghijklmnopqrstuv" );
+ m_rep.validate( "abcdefghijklmnopqrstu" );
+ m_rep.validate( "abcdefghijklmnopqrst" );
+ m_rep.validate( "abcdefghijklmnopqrs" );
+ m_rep.validate( "abcdefghijklmnopqr" );
+ m_rep.validate( "abcdefghijklmnopq" );
+ m_rep.validate( "abcdefghijklmnop" );
+ m_rep.validate( "abcdefghijklmno" );
+ m_rep.validate( "abcdefghijklmn" );
+ m_rep.validate( "abcdefghijklm" );
+ m_rep.validate( "abcdefghijkl" );
+ m_rep.validate( "abcdefghijk" );
+ m_rep.validate( "abcdefghij" );
+ m_rep.validate( "abcdefghi" );
+ m_rep.validate( "abcdefgh" );
+ m_rep.validate( "abcdefg" );
+ m_rep.validate( "abcdef" );
+ m_rep.validate( "abcde" );
+ m_rep.validate( "abcd" );
+ m_rep.validate( "abc" );
+ m_rep.validate( "ab" );
+ m_rep.validate( "a" );
+ m_rep.validate( "0123456789" );
+ m_rep.validate( "012345678" );
+ m_rep.validate( "01234567" );
+ m_rep.validate( "0123456" );
+ m_rep.validate( "012345" );
+ m_rep.validate( "01234" );
+ m_rep.validate( "0123" );
+ m_rep.validate( "012" );
+ m_rep.validate( "01" );
+ m_rep.validate( "0" );
+ m_rep.validate( "" );
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new VariableAN( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new VariableAN( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyzz0123456789" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01234567899" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456789" );
+ }
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableAN( 36 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableAN( 35 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new VariableAN( 36 );
+ assertEquals( "equals", other, other );
+ assertEquals( "equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new VariableAN( 35 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableBTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableBTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,175 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.B;
+import net.dpml.iso8583.data.representation.VariableB;
+
+public class VariableBTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new VariableB( 3 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "000000001111111100000000" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "00000000111111110000000a" );
+ fail( "alphabetic passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "00000000111111110000000." );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 47;
+ m_rep.validate( "00000000111111110000000" + ch );
+ fail( "char47 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 1532;
+ m_rep.validate( "00000000111111110000000" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "00000000111111110000000" );
+ fail( "too short passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new VariableB( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new B( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "0000000011111111000000001" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep.validate( "00000000111111110000000011111111" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "000000001111111100000000" );
+ }
+
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableB( 3 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableB( 4 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new VariableB( 3 );
+ assertEquals( "equals", other, other );
+ assertEquals( "AN equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new VariableB( 4 );
+ assertTrue( "AN equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "AN", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableNTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableNTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,166 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.VariableN;
+
+public class VariableNTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new VariableN( 10 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "0123456789" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "!123456789" );
+ fail( "exclamation mark passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( ".123456789" );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 132;
+ m_rep.validate( "012345678" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "012345678-" );
+ fail( "dash passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ m_rep.validate( "0123456789" );
+ m_rep.validate( "012345678" );
+ m_rep.validate( "01234567" );
+ m_rep.validate( "0123456" );
+ m_rep.validate( "012345" );
+ m_rep.validate( "01234" );
+ m_rep.validate( "0123" );
+ m_rep.validate( "012" );
+ m_rep.validate( "01" );
+ m_rep.validate( "0" );
+ m_rep.validate( "" );
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new VariableN( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new VariableN( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "10123456789" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "0123456789" );
+ }
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableN( 10 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableN( 11 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new VariableN( 10 );
+ assertEquals( "equals", other, other );
+ assertEquals( "equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new VariableN( 11 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "equals", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableZTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/VariableZTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,210 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.VariableZ;
+
+public class VariableZTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new VariableZ( 36 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456789" );
+ m_rep.validate( "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" );
+ m_rep.validate( "aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy!0123456789" );
+// fail( "exclamation mark passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy.0123456789" );
+// fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 132;
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678" + ch );
+// fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678-" );
+// fail( "dash passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345678" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01234567" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012345" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01234" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz012" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwxy" );
+ m_rep.validate( "abcdefghijklmnopqrstuvwx" );
+ m_rep.validate( "abcdefghijklmnopqrstuvw" );
+ m_rep.validate( "abcdefghijklmnopqrstuv" );
+ m_rep.validate( "abcdefghijklmnopqrstu" );
+ m_rep.validate( "abcdefghijklmnopqrst" );
+ m_rep.validate( "abcdefghijklmnopqrs" );
+ m_rep.validate( "abcdefghijklmnopqr" );
+ m_rep.validate( "abcdefghijklmnopq" );
+ m_rep.validate( "abcdefghijklmnop" );
+ m_rep.validate( "abcdefghijklmno" );
+ m_rep.validate( "abcdefghijklmn" );
+ m_rep.validate( "abcdefghijklm" );
+ m_rep.validate( "abcdefghijkl" );
+ m_rep.validate( "abcdefghijk" );
+ m_rep.validate( "abcdefghij" );
+ m_rep.validate( "abcdefghi" );
+ m_rep.validate( "abcdefgh" );
+ m_rep.validate( "abcdefg" );
+ m_rep.validate( "abcdef" );
+ m_rep.validate( "abcde" );
+ m_rep.validate( "abcd" );
+ m_rep.validate( "abc" );
+ m_rep.validate( "ab" );
+ m_rep.validate( "a" );
+ m_rep.validate( "0123456789" );
+ m_rep.validate( "012345678" );
+ m_rep.validate( "01234567" );
+ m_rep.validate( "0123456" );
+ m_rep.validate( "012345" );
+ m_rep.validate( "01234" );
+ m_rep.validate( "0123" );
+ m_rep.validate( "012" );
+ m_rep.validate( "01" );
+ m_rep.validate( "0" );
+ m_rep.validate( "" );
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new VariableZ( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new VariableZ( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyzz0123456789" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz01234567899" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "abcdefghijklmnopqrstuvwxyz0123456789" );
+ }
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableZ( 36 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new VariableZ( 34 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new VariableZ( 36 );
+ assertEquals( "equals", other, other );
+ assertEquals( "AN equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new VariableZ( 34 );
+ assertTrue( "AN equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "AN", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+}

Added:
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/XNTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/elements/src/test/net/dpml/iso8583/test/data/representation/XNTestCase.java
Tue Mar 29 17:14:16 2005
@@ -0,0 +1,175 @@
+package net.dpml.iso8583.test.data.representation;
+
+import junit.framework.TestCase;
+import net.dpml.iso8583.data.Representation;
+import net.dpml.iso8583.data.representation.AN;
+import net.dpml.iso8583.data.representation.XN;
+
+public class XNTestCase
+ extends TestCase
+{
+
+ Representation m_rep;
+
+ public void setUp()
+ throws Exception
+ {
+ m_rep = new XN( 10 );
+ }
+
+ public void testNull()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( null );
+ fail( "null passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectType()
+ throws Exception
+ {
+ m_rep.validate( "c123456789" );
+ m_rep.validate( "d123456789" );
+ }
+
+ public void testValidateWrongType()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "e123456789" );
+ fail( "alphabetic passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "1123456789" );
+ fail( "no debit/credit passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ m_rep.validate( "d12345678." );
+ fail( "dot passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 47;
+ m_rep.validate( "d12345678" + ch );
+ fail( "char47 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ try
+ {
+ char ch = 1532;
+ m_rep.validate( "d12345678" + ch );
+ fail( "strange char passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooShort()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "d12345678" );
+ fail( "too short passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ }
+
+ public void testZeroLength()
+ throws Exception
+ {
+ try
+ {
+ m_rep = new XN( 0 );
+ fail( "length=0 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+
+ try
+ {
+ m_rep = new XN( -10 );
+ fail( "length=-10 passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateTooLong()
+ throws Exception
+ {
+ try
+ {
+ m_rep.validate( "d1234567892" );
+ fail( "too long passed" );
+ } catch( IllegalArgumentException e )
+ {
+ // expected
+ }
+ }
+
+ public void testValidateCorrectLength()
+ throws Exception
+ {
+ m_rep.validate( "c123456789" );
+ m_rep.validate( "d123456789" );
+ }
+
+
+ public void testHashCode1()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new XN( 10 );
+ int h2 = other.hashCode();
+ assertEquals( "AN hash", h1, h2);
+ }
+
+ public void testHashCode2()
+ {
+ int h1 = m_rep.hashCode();
+ Representation other = new XN( 11 );
+ int h2 = other.hashCode();
+ assertTrue( "AN hash", h1 != h2);
+ }
+
+ public void testEquals()
+ {
+ Representation other = new XN( 10 );
+ assertEquals( "equals", other, other );
+ assertEquals( "AN equals", m_rep, other );
+ }
+
+ public void testNotEquals()
+ {
+ Representation other = new XN( 11 );
+ assertTrue( "AN equals", ! m_rep.equals( other ) );
+ other = new AN( 37 );
+ assertTrue( "AN", ! m_rep.equals( other ) );
+ assertTrue( "equals", ! m_rep.equals( new Object() ) );
+ }
+}

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 17:14:16
2005
@@ -7,13 +7,13 @@
<regexpContexts class="java.util.ArrayList" />
<flushInterval>5000</flushInterval>
<coveredHighlight null="true" />
- <flattenPackages>false</flattenPackages>
- <autoRefreshInterval>2000</autoRefreshInterval>
+ <flattenPackages>true</flattenPackages>
+ <autoRefreshInterval>5000</autoRefreshInterval>
<excludes null="true" />
<showErrorMarks>true</showErrorMarks>
<showInline>true</showInline>
<contextFilter class="com.cenqua.clover.context.BlockContextFilter">
- <filterMask>65535</filterMask>
+ <filterMask>32767</filterMask>
</contextFilter>
<notCoveredHighlight>-341816</notCoveredHighlight>
<showTooltips>true</showTooltips>
@@ -26,16 +26,16 @@
<manualInitString null="true" />
<includes null="true" />
<showSummaryInToolbar>true</showSummaryInToolbar>
- <autoScroll>true</autoScroll>
+ <autoScroll>false</autoScroll>
<useGeneratedInitString>true</useGeneratedInitString>
<outOfDateHighlight>-32</outOfDateHighlight>
<showSummaryInToolwindow>true</showSummaryInToolwindow>
<span>0</span>
<relativeInitString>false</relativeInitString>
<flushPolicy>0</flushPolicy>
- <autoScrollFromSource>false</autoScrollFromSource>
+ <autoScrollFromSource>true</autoScrollFromSource>
<coveredStripe>-16711936</coveredStripe>
- <autoRefresh>false</autoRefresh>
+ <autoRefresh>true</autoRefresh>
</component>
<component name="Commander">
<leftPanel url="file://$PROJECT_DIR$/channels" />
@@ -146,81 +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/AmountTransaction.java">
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosCapability.java"
pinned="false">
+ <first-group
selected-file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/ANB.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/VariableANS.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="620"
vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
+ <folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ProcessingCode.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/VariableAN.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1915"
selection-end="1915" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/ReconciliationIndicator.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/N.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1959"
selection-end="1959" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<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/main/net/dpml/iso8583/data/representation/B.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1960"
selection-end="1960" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<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$/elements/src/main/net/dpml/iso8583/data/representation/AS.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="2039"
selection-end="2039" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<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/representation/ANSB.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="50" column="55" selection-start="1684"
selection-end="1684" vertical-scroll-proportion="0.67017084">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
+ <folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/ANS.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="147" column="7" selection-start="5136"
selection-end="5136" vertical-scroll-proportion="0.9605782">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
+ <folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/GenericDataElement.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/ANP.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="56" column="1" selection-start="1407"
selection-end="1407" vertical-scroll-proportion="0.7884363">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="0" selection-start="758"
selection-end="758" vertical-scroll-proportion="0.15560167">
+ <folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/ANB.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="67" column="78" selection-start="2451"
selection-end="2451" vertical-scroll-proportion="0.60578185">
+ <state line="22" column="0" selection-start="758"
selection-end="758" vertical-scroll-proportion="0.15560167">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/MerchantCategoryCode.java"
pinned="false">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/representation/ANPTestCase.java"
pinned="false">
<provider selected="true" editor-type-id="text-editor">
- <state line="36" column="13" selection-start="1209"
selection-end="1209" vertical-scroll-proportion="0.33508542">
+ <state line="7" column="13" selection-start="241"
selection-end="241" vertical-scroll-proportion="0.12072434">
<folding />
</state>
</provider>
@@ -241,28 +233,24 @@
<component name="J2EEProjectPane" />
<component name="NamedScopeManager" />
<component name="PackagesPane">
- <expanded_node url="net.dpml.iso8583.data.elements" module="elements"
type="package" />
- <expanded_node url="net.dpml.iso8583.test.data.representation"
module="elements" type="package" />
+ <expanded_node url="" module="api" type="module" />
+ <expanded_node url="net.dpml.iso8583.data" module="api" type="package" />
<expanded_node url="net.dpml.iso8583.data.representation"
module="elements" type="package" />
+ <expanded_node url="net.dpml.iso8583" module="api" type="package" />
+ <expanded_node url="net.dpml.iso8583.test.data.representation"
module="elements" type="package" />
<expanded_node url="" module="elements" type="module" />
- <expanded_node url="net.dpml.iso8583.data" module="api" type="package" />
- <expanded_node url="" module="api" type="module" />
</component>
<component name="ProjectPane">
- <expanded_node url="file://$PROJECT_DIR$/elements/src/main/net/dpml"
module="elements" type="directory" />
- <expanded_node
url="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583"
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/main/net/dpml/iso8583/data"
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"
module="elements" type="directory" />
- <expanded_node url="file://$PROJECT_DIR$/elements/src/main/net"
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/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"
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/main"
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/src/test/net/dpml/iso8583/test/data/representation"
module="elements" type="directory" />
+ <expanded_node url="file://$PROJECT_DIR$/elements/src/test"
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"
module="elements" type="directory" />
+ <expanded_node url="" module="elements" type="module" />
</component>
<component name="ProjectView">
<navigator currentView="PackagesPane" splitterProportion="0.5">
@@ -282,11 +270,27 @@
<property name="MemberChooser.showClasses" value="true" />
<property name="MemberChooser.sorted" value="false" />
<property name="GoToFile.includeJavaFiles" value="false" />
- <property name="last_opened_file_path" value="/home/niclas" />
+ <property name="last_opened_file_path"
value="/home/niclas/dev/dpml/development/main/metro/unit/src/main/net/dpml/metro/unit"
/>
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
</component>
<component name="RunManager">
- <activeType name="Application" />
+ <activeType name="JUnit" />
+ <tempConfiguration selected="true" default="false"
name="net.dpml.iso8583.test.data.representation" type="JUnit"
factoryName="JUnit">
+ <module name="" />
+ <option name="PACKAGE_NAME"
value="net.dpml.iso8583.test.data.representation" />
+ <option name="MAIN_CLASS_NAME" />
+ <option name="METHOD_NAME" />
+ <option name="TEST_OBJECT" value="package" />
+ <option name="VM_PARAMETERS" />
+ <option name="PARAMETERS" />
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+ <option name="ADDITIONAL_CLASS_PATH" />
+ <option name="TEST_SEARCH_SCOPE">
+ <value defaultName="wholeProject" />
+ </option>
+ <RunnerSettings RunnerId="Run" />
+ <ConfigurationWrapper RunnerId="Run" />
+ </tempConfiguration>
<configuration selected="false" default="true" type="Remote"
factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
@@ -373,21 +377,21 @@
</component>
<component name="ToolWindowManager">
<frame x="10" y="0" width="1260" height="977" extended-state="1" />
- <editor active="true" />
+ <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"
/>
<window_info id="SvgViewer" active="false" anchor="right"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.33028287" order="3" />
<window_info id="TODO" active="false" anchor="bottom"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.33" order="7" />
- <window_info id="Project" active="false" anchor="left"
auto_hide="false" internal_type="docked" type="docked" visible="true"
weight="0.19800332" order="0" />
+ <window_info id="Project" active="false" anchor="left"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.24958402" order="0" />
<window_info id="Find" active="false" anchor="bottom"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.32979977" order="1" />
<window_info id="Structure" active="false" anchor="left"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.24958402" order="1" />
<window_info id="Messages" active="false" anchor="bottom"
auto_hide="false" internal_type="docked" type="docked" visible="false"
weight="0.32979977" order="8" />
<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.33" 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="false" anchor="left"
auto_hide="false" internal_type="docked" type="docked" visible="false"
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.3294509"
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" />
@@ -465,118 +469,108 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/FunctionCode.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/VariableZ.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1904"
selection-end="1904" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="0" selection-start="758"
selection-end="758" vertical-scroll-proportion="0.1633987">
<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/representation/XN.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1973"
selection-end="1973" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="0" selection-start="758"
selection-end="758" vertical-scroll-proportion="0.1633987">
<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/main/net/dpml/iso8583/data/representation/VariableB.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1929"
selection-end="1929" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="0" selection-start="758"
selection-end="758" vertical-scroll-proportion="0.1633987">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosDataCode.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/VariableANSB.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1900"
selection-end="1900" vertical-scroll-proportion="0.80551904">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.1633987">
+ <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/main/net/dpml/iso8583/data/elements/MessageErrorIndicator.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1960"
selection-end="1960" vertical-scroll-proportion="0.80551904">
+ <state line="50" column="18" selection-start="1621"
selection-end="1621" vertical-scroll-proportion="0.73239434">
<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/representation/VariableANS.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1915"
selection-end="1915" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<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/main/net/dpml/iso8583/data/representation/VariableAN.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1959"
selection-end="1959" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<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/representation/N.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="1960"
selection-end="1960" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/TransactionLifeCycleIdentificationData.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/B.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="60" column="0" selection-start="2039"
selection-end="2039" vertical-scroll-proportion="0.80551904">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<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/representation/AS.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="36" column="13" selection-start="1209"
selection-end="1209" vertical-scroll-proportion="0.33508542">
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
<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/representation/ANSB.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="50" column="55" selection-start="1684"
selection-end="1684" vertical-scroll-proportion="0.67017084">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
+ <folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/PosCapability.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/ANS.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="620"
vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="19" selection-start="777"
selection-end="777" vertical-scroll-proportion="0.15560167">
+ <folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AbstractDataElement.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/test/net/dpml/iso8583/test/data/representation/ANPTestCase.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="147" column="7" selection-start="5136"
selection-end="5136" vertical-scroll-proportion="0.9605782">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="7" column="13" selection-start="241"
selection-end="241" vertical-scroll-proportion="0.12072434">
+ <folding />
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/elements/AmountTransaction.java">
+ <entry
file="file://$PROJECT_DIR$/elements/src/main/net/dpml/iso8583/data/representation/ANB.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="67" column="78" selection-start="2451"
selection-end="2451" vertical-scroll-proportion="0.60578185">
+ <state line="22" column="0" selection-start="758"
selection-end="758" vertical-scroll-proportion="0.15560167">
<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/main/net/dpml/iso8583/data/representation/ANP.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="56" column="1" selection-start="1407"
selection-end="1407" vertical-scroll-proportion="0.7884363">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="22" column="0" selection-start="758"
selection-end="758" vertical-scroll-proportion="0.15560167">
+ <folding />
</state>
</provider>
</entry>

Modified: development/planet/users/niclas/iso8583/packaging/packaging.iml
==============================================================================
--- development/planet/users/niclas/iso8583/packaging/packaging.iml
(original)
+++ development/planet/users/niclas/iso8583/packaging/packaging.iml Tue
Mar 29 17:14:16 2005
@@ -13,6 +13,7 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Metro Public" level="application" />
<orderEntry type="library" name="JPos" level="project" />
+ <orderEntry type="library" name="Clover" level="application" />
<orderEntryProperties />
</component>
</module>



  • svn commit: r2171 - in development/planet/users/niclas/iso8583: . api channels elements elements/src/main/net/dpml/iso8583/data/elements elements/src/main/net/dpml/iso8583/data/representation elements/src/test/net/dpml/iso8583/test/data/elements elements/src/test/net/dpml/iso8583/test/data/representation packaging, niclas, 03/29/2005

Archive powered by MHonArc 2.6.24.

Top of Page