mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r604779 - /mina/trunk/core/src/test/java/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
Date Mon, 17 Dec 2007 06:12:00 GMT
Author: trustin
Date: Sun Dec 16 22:11:58 2007
New Revision: 604779

URL: http://svn.apache.org/viewvc?rev=604779&view=rev
Log:
Fixed failing tests

Modified:
    mina/trunk/core/src/test/java/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java

Modified: mina/trunk/core/src/test/java/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/test/java/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java?rev=604779&r1=604778&r2=604779&view=diff
==============================================================================
--- mina/trunk/core/src/test/java/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
(original)
+++ mina/trunk/core/src/test/java/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
Sun Dec 16 22:11:58 2007
@@ -19,14 +19,17 @@
  */
 package org.apache.mina.filter.codec;
 
+import java.net.SocketAddress;
 import java.util.ArrayList;
 import java.util.List;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
 
+import org.apache.mina.common.DefaultTransportMetadata;
 import org.apache.mina.common.IoBuffer;
 import org.apache.mina.common.IoSession;
+import org.apache.mina.common.IoSessionConfig;
 
 /**
  * Tests {@link CumulativeProtocolDecoder}.
@@ -48,6 +51,10 @@
     protected void setUp() throws Exception {
         buf = IoBuffer.allocate(16);
         decoder = new IntegerDecoder();
+        session.setTransportMetadata(
+                new DefaultTransportMetadata(
+                        "mina", "dummy", false, true, SocketAddress.class,
+                        IoSessionConfig.class, IoBuffer.class));
     }
 
     @Override



Mime
View raw message