- added dummy tests to make sure the test classes don't fail because of disabled tests, these tests need a local rabbitmq server running

This commit is contained in:
momania 2010-07-02 14:15:53 +02:00
parent 2e840b1b80
commit e1b97fe6dd
8 changed files with 59 additions and 3 deletions

View file

@ -16,7 +16,7 @@ import se.scalablesolutions.akka.amqp.AMQP.ConnectionParameters
import org.scalatest.matchers.MustMatchers
class AMQPConnectionRecoveryTest extends JUnitSuite with MustMatchers with Logging {
// @Test
def connectionAndRecovery = {
val connectedLatch = new StandardLatch
@ -48,4 +48,11 @@ class AMQPConnectionRecoveryTest extends JUnitSuite with MustMatchers with Loggi
disconnectedLatch.tryAwait(2, TimeUnit.SECONDS) must be(true)
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}

View file

@ -18,7 +18,7 @@ import org.junit.Test
class AMQPConsumerChannelRecoveryTest extends JUnitSuite with MustMatchers with Logging {
@Test
// @Test
def consumerChannelRecovery = {
val connection = AMQP.newConnection(ConnectionParameters(initReconnectDelay = 50))
@ -59,4 +59,11 @@ class AMQPConsumerChannelRecoveryTest extends JUnitSuite with MustMatchers with
connection.stop
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}

View file

@ -18,7 +18,7 @@ import org.junit.Test
class AMQPConsumerConnectionRecoveryTest extends JUnitSuite with MustMatchers with Logging {
@Test
// @Test
def consumerConnectionRecovery = {
val connection = AMQP.newConnection(ConnectionParameters(initReconnectDelay = 50))
@ -77,4 +77,11 @@ class AMQPConsumerConnectionRecoveryTest extends JUnitSuite with MustMatchers wi
connection.stop
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}

View file

@ -48,4 +48,11 @@ class AMQPConsumerManualAcknowledgeTest extends JUnitSuite with MustMatchers wit
connection.stop
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}

View file

@ -43,4 +43,11 @@ class AMQPConsumerMessageTest extends JUnitSuite with MustMatchers with Logging
connection.stop
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}

View file

@ -53,4 +53,11 @@ class AMQPProducerChannelRecoveryTest extends JUnitSuite with MustMatchers with
connection.stop
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}

View file

@ -51,4 +51,11 @@ class AMQPProducerConnectionRecoveryTest extends JUnitSuite with MustMatchers wi
connection.stop
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}

View file

@ -42,4 +42,11 @@ class AMQPProducerMessageTest extends JUnitSuite with MustMatchers with Logging
connection.stop
}
}
@Test
def dummy {
// amqp tests need local rabbitmq server running, so a disabled by default.
// this dummy test makes sure that the whole test class doesn't fail because of missing tests
assert(true)
}
}