This is an automated email from the ASF dual-hosted git repository.

tabish pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-protonj2.git


The following commit(s) were added to refs/heads/main by this push:
     new 0b99d5e  PROTON-2398 Fixes for some spelling and other minor typos in 
the tests
0b99d5e is described below

commit 0b99d5ea3ebc1a62b142417927867adab82ad275
Author: Timothy Bish <tabish...@gmail.com>
AuthorDate: Fri Jul 30 14:45:20 2021 -0400

    PROTON-2398 Fixes for some spelling and other minor typos in the tests
---
 .../protonj2/codec/messaging/AmqpValueTypeCodecTest.java   |  1 -
 .../codec/messaging/MessageAnnotationsTypeCodecTest.java   |  3 ++-
 .../protonj2/codec/messaging/PropertiesTypeCodecTest.java  |  8 ++++----
 .../qpid/protonj2/codec/primitives/MapTypeCodecTest.java   |  2 +-
 .../qpid/protonj2/codec/primitives/UUIDTypeCodecTest.java  | 14 +++++++-------
 .../protonj2/codec/transactions/DeclaredTypeCodecTest.java |  2 +-
 .../codec/transactions/DischargeTypeCodecTest.java         |  2 +-
 7 files changed, 16 insertions(+), 16 deletions(-)

diff --git 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/AmqpValueTypeCodecTest.java
 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/AmqpValueTypeCodecTest.java
index bf09b38..ab82916 100644
--- 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/AmqpValueTypeCodecTest.java
+++ 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/AmqpValueTypeCodecTest.java
@@ -264,7 +264,6 @@ public class AmqpValueTypeCodecTest extends 
CodecTestSupport {
     }
 
     @SuppressWarnings("rawtypes")
-    @Test
     private void doTestEncodeDecodeArray(boolean fromStream) throws 
IOException {
         ProtonBuffer buffer = ProtonByteBufferAllocator.DEFAULT.allocate();
         InputStream stream = new ProtonBufferInputStream(buffer);
diff --git 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/MessageAnnotationsTypeCodecTest.java
 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/MessageAnnotationsTypeCodecTest.java
index 422d46d..7033cd2 100644
--- 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/MessageAnnotationsTypeCodecTest.java
+++ 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/MessageAnnotationsTypeCodecTest.java
@@ -525,4 +525,5 @@ public class MessageAnnotationsTypeCodecTest extends 
CodecTestSupport {
             decoder.readObject(buffer, decoderState);
             fail("Should not decode type with invalid encoding");
         } catch (DecodeException ex) {}
-    }}
+    }
+}
diff --git 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/PropertiesTypeCodecTest.java
 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/PropertiesTypeCodecTest.java
index 34bfabe..9d0e390 100644
--- 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/PropertiesTypeCodecTest.java
+++ 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/PropertiesTypeCodecTest.java
@@ -62,22 +62,22 @@ public class PropertiesTypeCodecTest extends 
CodecTestSupport {
     }
 
     @Test
-    public void testDecodeSmallSeriesOfPropertiess() throws IOException {
+    public void testDecodeSmallSeriesOfProperties() throws IOException {
         doTestDecodePropertiesSeries(SMALL_SIZE, false);
     }
 
     @Test
-    public void testDecodeLargeSeriesOfPropertiess() throws IOException {
+    public void testDecodeLargeSeriesOfProperties() throws IOException {
         doTestDecodePropertiesSeries(LARGE_SIZE, false);
     }
 
     @Test
-    public void testDecodeSmallSeriesOfPropertiessFromStream() throws 
IOException {
+    public void testDecodeSmallSeriesOfPropertiesFromStream() throws 
IOException {
         doTestDecodePropertiesSeries(SMALL_SIZE, true);
     }
 
     @Test
-    public void testDecodeLargeSeriesOfPropertiessStream() throws IOException {
+    public void testDecodeLargeSeriesOfPropertiesFromStream() throws 
IOException {
         doTestDecodePropertiesSeries(LARGE_SIZE, true);
     }
 
diff --git 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/MapTypeCodecTest.java
 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/MapTypeCodecTest.java
index 6abc6f2..57301dd 100644
--- 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/MapTypeCodecTest.java
+++ 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/MapTypeCodecTest.java
@@ -333,7 +333,7 @@ public class MapTypeCodecTest extends CodecTestSupport {
             buffer.writeInt(17);
             buffer.writeInt(1);
         } else {
-            buffer.writeByte(17);
+            buffer.writeByte(14);
             buffer.writeByte(1);
         }
         buffer.writeByte(EncodingCodes.STR8);
diff --git 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/UUIDTypeCodecTest.java
 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/UUIDTypeCodecTest.java
index 4d52688..3b66e9f 100644
--- 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/UUIDTypeCodecTest.java
+++ 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/primitives/UUIDTypeCodecTest.java
@@ -161,25 +161,25 @@ public class UUIDTypeCodecTest extends CodecTestSupport {
 
     @Test
     public void testDecodeSmallUUIDArray() throws IOException {
-        doTestDecodeUUDIArrayType(SMALL_ARRAY_SIZE, false);
+        doTestDecodeUUIDArrayType(SMALL_ARRAY_SIZE, false);
     }
 
     @Test
-    public void testDecodeLargeUUDIArray() throws IOException {
-        doTestDecodeUUDIArrayType(LARGE_ARRAY_SIZE, false);
+    public void testDecodeLargeUUIDArray() throws IOException {
+        doTestDecodeUUIDArrayType(LARGE_ARRAY_SIZE, false);
     }
 
     @Test
     public void testDecodeSmallUUIDArrayFromStream() throws IOException {
-        doTestDecodeUUDIArrayType(SMALL_ARRAY_SIZE, true);
+        doTestDecodeUUIDArrayType(SMALL_ARRAY_SIZE, true);
     }
 
     @Test
-    public void testDecodeLargeUUDIArrayFromStream() throws IOException {
-        doTestDecodeUUDIArrayType(LARGE_ARRAY_SIZE, true);
+    public void testDecodeLargeUUIDArrayFromStream() throws IOException {
+        doTestDecodeUUIDArrayType(LARGE_ARRAY_SIZE, true);
     }
 
-    private void doTestDecodeUUDIArrayType(int size, boolean fromStream) 
throws IOException {
+    private void doTestDecodeUUIDArrayType(int size, boolean fromStream) 
throws IOException {
         ProtonBuffer buffer = ProtonByteBufferAllocator.DEFAULT.allocate();
         InputStream stream = new ProtonBufferInputStream(buffer);
 
diff --git 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DeclaredTypeCodecTest.java
 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DeclaredTypeCodecTest.java
index 59b36f2..8c9817e 100644
--- 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DeclaredTypeCodecTest.java
+++ 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DeclaredTypeCodecTest.java
@@ -47,7 +47,7 @@ public class DeclaredTypeCodecTest extends CodecTestSupport {
 
     @Test
     public void testTypeClassReturnsCorrectType() throws IOException {
-        assertEquals(Declared.class, new DeclaredTypeEncoder().getTypeClass());
+        assertEquals(Declared.class, new DeclaredTypeDecoder().getTypeClass());
         assertEquals(Declared.class, new DeclaredTypeEncoder().getTypeClass());
     }
 
diff --git 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DischargeTypeCodecTest.java
 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DischargeTypeCodecTest.java
index 85fda9c..3e5ee51 100644
--- 
a/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DischargeTypeCodecTest.java
+++ 
b/protonj2/src/test/java/org/apache/qpid/protonj2/codec/transactions/DischargeTypeCodecTest.java
@@ -48,7 +48,7 @@ public class DischargeTypeCodecTest extends CodecTestSupport {
     @Test
     public void testTypeClassReturnsCorrectType() throws IOException {
         assertEquals(Discharge.class, new 
DischargeTypeDecoder().getTypeClass());
-        assertEquals(Discharge.class, new 
DischargeTypeDecoder().getTypeClass());
+        assertEquals(Discharge.class, new 
DischargeTypeEncoder().getTypeClass());
     }
 
     @Test

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to