forked from hornetq/hornetq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HORNETQ-1217 junit 3 -> 4. Automatically generated.
- Loading branch information
Francisco Borges
committed
Jun 3, 2013
1 parent
58cc781
commit ef39628
Showing
534 changed files
with
6,008 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,22 +12,25 @@ | |
*/ | ||
package org.hornetq.core.remoting.impl.netty; | ||
|
||
import org.junit.Test; | ||
|
||
import org.hornetq.api.core.HornetQBuffer; | ||
import org.hornetq.spi.core.remoting.BufferDecoder; | ||
import org.jboss.netty.buffer.ChannelBuffer; | ||
import org.jboss.netty.buffer.ChannelBuffers; | ||
import org.jboss.netty.handler.codec.embedder.DecoderEmbedder; | ||
import org.jboss.netty.util.CharsetUtil; | ||
|
||
import junit.framework.TestCase; | ||
import org.junit.Assert; | ||
|
||
/** | ||
* | ||
* @author <a href="mailto:[email protected]">Norman Maurer</a> | ||
* | ||
*/ | ||
public class HornetQFrameDecoderTest extends TestCase{ | ||
public class HornetQFrameDecoderTest extends Assert{ | ||
|
||
@Test | ||
public void testDecoding() { | ||
final ChannelBuffer buffer = ChannelBuffers.copiedBuffer("TestBytes", CharsetUtil.US_ASCII); | ||
|
||
|
10 changes: 5 additions & 5 deletions
10
hornetq-core-client/src/test/java/org/hornetq/tests/CoreUnitTestCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,15 @@ | |
|
||
package org.hornetq.util; | ||
|
||
import org.junit.Test; | ||
|
||
import java.io.ByteArrayInputStream; | ||
import java.io.ByteArrayOutputStream; | ||
import java.util.ArrayList; | ||
import java.util.concurrent.atomic.AtomicLong; | ||
import java.util.zip.Deflater; | ||
|
||
import junit.framework.TestCase; | ||
import org.junit.Assert; | ||
|
||
import org.hornetq.utils.DeflaterReader; | ||
import org.hornetq.utils.InflaterReader; | ||
|
@@ -31,9 +33,10 @@ | |
* @author <a href="mailto:[email protected]">Howard Gao</a> | ||
* | ||
*/ | ||
public class CompressionUtilTest extends TestCase | ||
public class CompressionUtilTest extends Assert | ||
{ | ||
|
||
@Test | ||
public void testDeflaterReader() throws Exception | ||
{ | ||
String inputString = "blahblahblah??blahblahblahblahblah??blablahblah??blablahblah??bla"; | ||
|
@@ -71,6 +74,7 @@ public void testDeflaterReader() throws Exception | |
reader.close(); | ||
} | ||
|
||
@Test | ||
public void testDeflaterReader2() throws Exception | ||
{ | ||
String inputString = "blahblahblah??blahblahblahblahblah??blablahblah??blablahblah??bla"; | ||
|
@@ -112,6 +116,7 @@ public void testDeflaterReader2() throws Exception | |
reader.close(); | ||
} | ||
|
||
@Test | ||
public void testInflaterReader() throws Exception | ||
{ | ||
String inputString = "blahblahblah??blahblahblahblahblah??blablahblah??blablahblah??bla"; | ||
|
@@ -150,6 +155,7 @@ public void testInflaterReader() throws Exception | |
inflater.close(); | ||
} | ||
|
||
@Test | ||
public void testInflaterWriter() throws Exception | ||
{ | ||
String inputString = "blahblahblah??blahblahblahblahblah??blablahblah??blablahblah??bla"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,12 @@ | |
|
||
package org.hornetq.util; | ||
|
||
import org.junit.Test; | ||
|
||
import java.util.concurrent.CountDownLatch; | ||
|
||
import junit.framework.Assert; | ||
import junit.framework.TestCase; | ||
import org.junit.Assert; | ||
|
||
|
||
import org.hornetq.tests.CoreUnitTestCase; | ||
import org.hornetq.utils.ConcurrentHashSet; | ||
|
@@ -27,7 +29,7 @@ | |
* | ||
* @author <a href="mailto:[email protected]">Clebert Suconic</a> Created 24-Sep-08 3:42:25 PM | ||
*/ | ||
public class TimeAndCounterIDGeneratorTest extends TestCase | ||
public class TimeAndCounterIDGeneratorTest extends Assert | ||
{ | ||
|
||
// Constants ----------------------------------------------------- | ||
|
@@ -40,6 +42,7 @@ public class TimeAndCounterIDGeneratorTest extends TestCase | |
|
||
// Public -------------------------------------------------------- | ||
|
||
@Test | ||
public void testCalculation() | ||
{ | ||
TimeAndCounterIDGenerator seq = new TimeAndCounterIDGenerator(); | ||
|
@@ -58,6 +61,7 @@ public void testCalculation() | |
|
||
} | ||
|
||
@Test | ||
public void testCalculationRefresh() | ||
{ | ||
TimeAndCounterIDGenerator seq = new TimeAndCounterIDGenerator(); | ||
|
@@ -76,6 +80,7 @@ public void testCalculationRefresh() | |
|
||
} | ||
|
||
@Test | ||
public void testCalculationOnMultiThread() throws Throwable | ||
{ | ||
final ConcurrentHashSet<Long> hashSet = new ConcurrentHashSet<Long>(); | ||
|
@@ -152,6 +157,7 @@ public void run() | |
|
||
} | ||
|
||
@Test | ||
public void testWrapID() throws Throwable | ||
{ | ||
TimeAndCounterIDGenerator seq = new TimeAndCounterIDGenerator(); | ||
|
Oops, something went wrong.