You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2008/07/24 19:02:58 UTC
svn commit: r679465 -
/directory/shared/branches/bigbang/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java
Author: elecharny
Date: Thu Jul 24 10:02:58 2008
New Revision: 679465
URL: http://svn.apache.org/viewvc?rev=679465&view=rev
Log:
Minor refactoring
Modified:
directory/shared/branches/bigbang/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java
Modified: directory/shared/branches/bigbang/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java?rev=679465&r1=679464&r2=679465&view=diff
==============================================================================
--- directory/shared/branches/bigbang/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java (original)
+++ directory/shared/branches/bigbang/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java Thu Jul 24 10:02:58 2008
@@ -559,9 +559,37 @@
{
byte[] encoded = null;
int[] testedInt = new int[]
- { Integer.MIN_VALUE, -2147483647, -16777216, -16777215, -8388608, -8388607, -65536, -65535, -32768, -32767,
- -256, -255, -128, -127, -1, 0, 1, 127, 128, 255, 256, 32767, 32768, 65535, 65536, 8388607, 8388608,
- 16777215, 16777216, Integer.MAX_VALUE };
+ {
+ Integer.MIN_VALUE,
+ -2147483647,
+ -16777216,
+ -16777215,
+ -8388608,
+ -8388607,
+ -65536,
+ -65535,
+ -32768,
+ -32767,
+ -256,
+ -255,
+ -128,
+ -127,
+ -1,
+ 0,
+ 1,
+ 127,
+ 128,
+ 255,
+ 256,
+ 32767,
+ 32768,
+ 65535,
+ 65536,
+ 8388607,
+ 8388608,
+ 16777215,
+ 16777216,
+ Integer.MAX_VALUE };
for ( int i:testedInt )
{
@@ -632,7 +660,7 @@
public void testDecodeLong() throws Exception
{
byte[] encoded = null;
- long[] testedInt = new long[]
+ long[] testedLong = new long[]
{
Long.MIN_VALUE,
-9223372036854775808L,
@@ -705,7 +733,7 @@
36028797018963967L,
Long.MAX_VALUE };
- for ( long i:testedInt )
+ for ( long i:testedLong )
{
encoded = new BigInteger( Long.toString( i ) ).toByteArray();