From 8e810e9ee42d828a4e9072aca7eacb78ef7deda6 Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Mon, 21 Dec 2015 11:28:04 -0800 Subject: [PATCH 01/13] #37 Migrate build system away from Ant - Maven 3 - step 1 --- .settings/org.eclipse.core.resources.prefs | 5 + .settings/org.eclipse.jdt.core.prefs | 5 + .settings/org.eclipse.m2e.core.prefs | 4 + build.properties | 5 +- pom.xml | 202 +++++++++++------- .../java}/com/rabbitmq/client/Address.java | 0 .../client/AlreadyClosedException.java | 0 .../AuthenticationFailureException.java | 0 .../com/rabbitmq/client/BasicProperties.java | 0 .../com/rabbitmq/client/BlockedListener.java | 0 .../java}/com/rabbitmq/client/Channel.java | 0 .../java}/com/rabbitmq/client/Command.java | 0 .../com/rabbitmq/client/ConfirmListener.java | 0 .../java}/com/rabbitmq/client/Connection.java | 0 .../rabbitmq/client/ConnectionFactory.java | 0 .../java}/com/rabbitmq/client/Consumer.java | 0 .../client/ConsumerCancelledException.java | 0 .../com/rabbitmq/client/ContentHeader.java | 0 .../com/rabbitmq/client/DefaultConsumer.java | 0 .../rabbitmq/client/DefaultSaslConfig.java | 0 .../client/DefaultSocketConfigurator.java | 0 .../java}/com/rabbitmq/client/Envelope.java | 0 .../com/rabbitmq/client/ExceptionHandler.java | 0 .../com/rabbitmq/client/FlowListener.java | 0 .../com/rabbitmq/client/GetResponse.java | 0 .../com/rabbitmq/client/JDKSaslConfig.java | 0 .../java}/com/rabbitmq/client/LongString.java | 0 .../client/MalformedFrameException.java | 0 .../com/rabbitmq/client/MapRpcServer.java | 0 .../rabbitmq/client/MessageProperties.java | 0 .../java}/com/rabbitmq/client/Method.java | 0 .../client/MissedHeartbeatException.java | 0 .../com/rabbitmq/client/NullTrustManager.java | 0 ...ossibleAuthenticationFailureException.java | 0 .../ProtocolVersionMismatchException.java | 0 .../com/rabbitmq/client/QueueingConsumer.java | 0 .../com/rabbitmq/client/Recoverable.java | 0 .../com/rabbitmq/client/RecoveryListener.java | 0 .../com/rabbitmq/client/ReturnListener.java | 0 .../java}/com/rabbitmq/client/RpcClient.java | 0 .../java}/com/rabbitmq/client/RpcServer.java | 0 .../java}/com/rabbitmq/client/SaslConfig.java | 0 .../com/rabbitmq/client/SaslMechanism.java | 0 .../com/rabbitmq/client/ShutdownListener.java | 0 .../com/rabbitmq/client/ShutdownNotifier.java | 0 .../client/ShutdownSignalException.java | 0 .../rabbitmq/client/SocketConfigurator.java | 0 .../com/rabbitmq/client/StringRpcServer.java | 0 .../client/TopologyRecoveryException.java | 0 .../rabbitmq/client/UnexpectedFrameError.java | 0 .../client/UnexpectedMethodError.java | 0 .../client/UnknownClassOrMethodId.java | 0 .../client/impl/AMQBasicProperties.java | 0 .../com/rabbitmq/client/impl/AMQChannel.java | 0 .../com/rabbitmq/client/impl/AMQCommand.java | 0 .../rabbitmq/client/impl/AMQConnection.java | 0 .../client/impl/AMQContentHeader.java | 0 .../rabbitmq/client/impl/CRDemoMechanism.java | 0 .../rabbitmq/client/impl/ChannelManager.java | 0 .../com/rabbitmq/client/impl/ChannelN.java | 0 .../client/impl/ClientVersion.java.in | 0 .../client/impl/CommandAssembler.java | 0 .../client/impl/ConnectionParams.java | 0 .../client/impl/ConsumerDispatcher.java | 0 .../client/impl/ConsumerWorkService.java | 0 .../impl/ContentHeaderPropertyReader.java | 0 .../impl/ContentHeaderPropertyWriter.java | 0 .../client/impl/DefaultExceptionHandler.java | 0 .../com/rabbitmq/client/impl/Environment.java | 0 .../client/impl/ExternalMechanism.java | 0 .../impl/ForgivingExceptionHandler.java | 0 .../java}/com/rabbitmq/client/impl/Frame.java | 0 .../rabbitmq/client/impl/FrameHandler.java | 0 .../client/impl/FrameHandlerFactory.java | 0 .../rabbitmq/client/impl/HeartbeatSender.java | 0 .../client/impl/LongStringHelper.java | 0 .../com/rabbitmq/client/impl/Method.java | 0 .../client/impl/MethodArgumentReader.java | 0 .../client/impl/MethodArgumentWriter.java | 0 .../client/impl/NetworkConnection.java | 0 .../rabbitmq/client/impl/PlainMechanism.java | 0 .../com/rabbitmq/client/impl/SetQueue.java | 0 .../impl/ShutdownNotifierComponent.java | 0 .../client/impl/SocketFrameHandler.java | 0 .../client/impl/StrictExceptionHandler.java | 0 .../client/impl/TruncatedInputStream.java | 0 .../client/impl/UnknownChannelException.java | 0 .../com/rabbitmq/client/impl/ValueReader.java | 0 .../com/rabbitmq/client/impl/ValueWriter.java | 0 .../impl/VariableLinkedBlockingQueue.java | 0 .../com/rabbitmq/client/impl/Version.java | 0 .../com/rabbitmq/client/impl/WorkPool.java | 0 .../com/rabbitmq/client/impl/package.html | 0 .../impl/recovery/AutorecoveringChannel.java | 0 .../recovery/AutorecoveringConnection.java | 0 .../recovery/ConsumerRecoveryListener.java | 0 .../impl/recovery/QueueRecoveryListener.java | 0 .../client/impl/recovery/RecordedBinding.java | 0 .../impl/recovery/RecordedConsumer.java | 0 .../client/impl/recovery/RecordedEntity.java | 0 .../impl/recovery/RecordedExchange.java | 0 .../recovery/RecordedExchangeBinding.java | 0 .../impl/recovery/RecordedNamedEntity.java | 0 .../client/impl/recovery/RecordedQueue.java | 0 .../impl/recovery/RecordedQueueBinding.java | 0 .../recovery/RecoveryAwareAMQConnection.java | 0 .../RecoveryAwareAMQConnectionFactory.java | 0 .../recovery/RecoveryAwareChannelManager.java | 0 .../impl/recovery/RecoveryAwareChannelN.java | 0 .../java}/com/rabbitmq/client/package.html | 0 .../java}/com/rabbitmq/tools/Tracer.java | 0 .../com/rabbitmq/tools/json/JSONReader.java | 0 .../rabbitmq/tools/json/JSONSerializable.java | 0 .../com/rabbitmq/tools/json/JSONUtil.java | 0 .../com/rabbitmq/tools/json/JSONWriter.java | 0 .../com/rabbitmq/tools/json/package.html | 0 .../rabbitmq/tools/jsonrpc/JsonRpcClient.java | 0 .../tools/jsonrpc/JsonRpcException.java | 0 .../rabbitmq/tools/jsonrpc/JsonRpcServer.java | 0 .../tools/jsonrpc/ParameterDescription.java | 0 .../tools/jsonrpc/ProcedureDescription.java | 0 .../tools/jsonrpc/ServiceDescription.java | 0 .../com/rabbitmq/tools/jsonrpc/package.html | 0 .../java}/com/rabbitmq/tools/package.html | 0 .../com/rabbitmq/utility/BlockingCell.java | 0 .../utility/BlockingValueOrException.java | 0 .../com/rabbitmq/utility/IntAllocator.java | 0 .../com/rabbitmq/utility/SensibleClone.java | 0 .../utility/SingleShotLinearTimer.java | 0 .../java}/com/rabbitmq/utility/Utility.java | 0 .../rabbitmq/utility/ValueOrException.java | 0 .../java}/com/rabbitmq/utility/package.html | 0 .../rabbitmq/client/impl/WorkPoolTests.java | 0 .../client/test/AMQBuilderApiTest.java | 0 .../client/test/AMQConnectionTest.java | 0 .../client/test/AbstractRMQTestSuite.java | 127 +++++++++++ .../com/rabbitmq/client/test/AmqpUriTest.java | 0 .../client/test/BlockingCellTest.java | 0 .../client/test/BrokenFramesTest.java | 0 .../rabbitmq/client/test/BrokerTestCase.java | 10 +- .../rabbitmq/client/test/Bug20004Test.java | 0 .../test/ChannelNumberAllocationTests.java | 0 .../com/rabbitmq/client/test/ClientTests.java | 6 +- .../client/test/ClonePropertiesTest.java | 0 .../rabbitmq/client/test/CloseInMainLoop.java | 0 .../com/rabbitmq/client/test/ConfirmBase.java | 0 .../client/test/JSONReadWriteTest.java | 9 +- .../rabbitmq/client/test/LongStringTest.java | 0 .../client/test/MultiThreadedChannel.java | 0 .../test/QueueingConsumerShutdownTests.java | 0 .../client/test/SharedThreadPoolTest.java | 0 .../com/rabbitmq/client/test/TableTest.java | 0 .../client/test/TruncatedInputStreamTest.java | 0 .../client/test/ValueOrExceptionTest.java | 0 .../test/functional/AbstractRejectTest.java | 0 .../test/functional/AlternateExchange.java | 0 .../client/test/functional/BasicGet.java | 0 .../test/functional/BindingLifecycle.java | 0 .../test/functional/BindingLifecycleBase.java | 0 .../client/test/functional/CcRoutes.java | 0 .../test/functional/ClusteredTestBase.java | 0 .../client/test/functional/Confirm.java | 0 .../test/functional/ConnectionOpen.java | 0 .../test/functional/ConnectionRecovery.java | 0 .../ConsumerCancelNotification.java | 0 .../client/test/functional/ConsumerCount.java | 0 .../test/functional/ConsumerPriorities.java | 0 .../test/functional/DeadLetterExchange.java | 0 .../test/functional/DefaultExchange.java | 0 .../client/test/functional/DirectReplyTo.java | 0 .../test/functional/DoubleDeletion.java | 0 .../test/functional/DurableOnTransient.java | 0 .../test/functional/ExceptionHandling.java | 0 .../test/functional/ExceptionMessages.java | 0 .../test/functional/ExchangeDeclare.java | 0 .../functional/ExchangeDeleteIfUnused.java | 0 .../functional/ExchangeDeletePredeclared.java | 0 .../functional/ExchangeEquivalenceBase.java | 0 .../functional/ExchangeExchangeBindings.java | 0 .../ExchangeExchangeBindingsAutoDelete.java | 0 .../client/test/functional/FrameMax.java | 0 .../test/functional/FunctionalTests.java | 3 +- .../functional/HeadersExchangeValidation.java | 0 .../client/test/functional/Heartbeat.java | 0 .../test/functional/InternalExchange.java | 0 .../client/test/functional/InvalidAcks.java | 0 .../test/functional/InvalidAcksBase.java | 0 .../client/test/functional/InvalidAcksTx.java | 0 .../client/test/functional/MessageCount.java | 0 .../rabbitmq/client/test/functional/Nack.java | 0 .../test/functional/NoRequeueOnCancel.java | 0 .../client/test/functional/Nowait.java | 0 .../test/functional/PerConsumerPrefetch.java | 0 .../client/test/functional/PerMessageTTL.java | 0 .../client/test/functional/PerQueueTTL.java | 0 .../functional/PerQueueVsPerMessageTTL.java | 0 .../client/test/functional/Policies.java | 0 .../client/test/functional/QosTests.java | 0 .../test/functional/QueueExclusivity.java | 0 .../client/test/functional/QueueLease.java | 0 .../test/functional/QueueLifecycle.java | 0 .../test/functional/QueueSizeLimit.java | 0 .../client/test/functional/Recover.java | 0 .../client/test/functional/Reject.java | 0 .../functional/RequeueOnChannelClose.java | 0 .../test/functional/RequeueOnClose.java | 0 .../functional/RequeueOnConnectionClose.java | 0 .../client/test/functional/Routing.java | 0 .../test/functional/SaslMechanisms.java | 0 .../client/test/functional/TTLHandling.java | 0 .../client/test/functional/Tables.java | 0 .../client/test/functional/Transactions.java | 0 .../functional/UnbindAutoDeleteExchange.java | 0 .../test/functional/UnexpectedFrames.java | 0 .../client/test/functional/UserIDHeader.java | 0 .../client/test/performance/CLIHelper.java | 0 .../client/test/performance/QosScaling.java | 0 .../test/performance/ScalabilityTest.java | 0 .../test/performance/StressManagement.java | 0 .../client/test/server/AbsentQueue.java | 7 +- .../server/AlternateExchangeEquivalence.java | 0 .../client/test/server/BlockedConnection.java | 11 +- .../client/test/server/Bug19219Test.java | 0 .../test/server/ChannelLimitNegotiation.java | 0 .../server/DeadLetterExchangeDurable.java | 0 .../test/server/DurableBindingLifecycle.java | 0 .../server/EffectVisibilityCrossNodeTest.java | 0 .../test/server/ExclusiveQueueDurability.java | 1 - .../rabbitmq/client/test/server/Firehose.java | 0 .../rabbitmq/client/test/server/HATests.java | 11 +- .../client/test/server/LoopbackUsers.java | 0 .../client/test/server/MemoryAlarms.java | 1 - .../client/test/server/MessageRecovery.java | 5 +- .../client/test/server/Permissions.java | 0 .../test/server/PersistenceGuarantees.java | 0 .../client/test/server/ServerTests.java | 48 +++++ .../rabbitmq/client/test/server/Shutdown.java | 6 +- .../test/server/XDeathHeaderGrowth.java | 0 .../test/ssl/BadVerifiedConnection.java | 0 .../rabbitmq/client/test/ssl/SSLTests.java | 7 +- .../client/test/ssl/UnverifiedConnection.java | 0 .../client/test/ssl/VerifiedConnection.java | 0 .../examples/BufferPerformanceMetrics.java | 0 .../examples/ChannelCreationPerformance.java | 0 .../examples/ConfirmDontLoseMessages.java | 0 .../com/rabbitmq/examples/ConsumerMain.java | 0 .../examples/DirectReplyToPerformance.java | 0 .../com/rabbitmq/examples/FileConsumer.java | 0 .../com/rabbitmq/examples/FileProducer.java | 0 .../com/rabbitmq/examples/HelloClient.java | 0 .../rabbitmq/examples/HelloJsonClient.java | 0 .../rabbitmq/examples/HelloJsonServer.java | 0 .../rabbitmq/examples/HelloJsonService.java | 0 .../com/rabbitmq/examples/HelloServer.java | 0 .../java}/com/rabbitmq/examples/LogTail.java | 0 .../com/rabbitmq/examples/MulticastMain.java | 0 .../rabbitmq/examples/PerQueueTTLGetter.java | 0 .../examples/PerQueueTTLPublisher.java | 0 .../java}/com/rabbitmq/examples/PerfTest.java | 0 .../com/rabbitmq/examples/PerfTestMulti.java | 0 .../com/rabbitmq/examples/ProducerMain.java | 0 .../com/rabbitmq/examples/SendString.java | 0 .../com/rabbitmq/examples/SimpleConsumer.java | 0 .../com/rabbitmq/examples/SimpleProducer.java | 0 .../examples/SimpleTopicConsumer.java | 0 .../examples/SimpleTopicProducer.java | 0 .../examples/SpammyTopicProducer.java | 0 .../rabbitmq/examples/StressPersister.java | 0 .../java}/com/rabbitmq/examples/TestMain.java | 10 +- .../examples/TracerConcurrencyTest.java | 0 .../com/rabbitmq/examples/perf/Broker.java | 0 .../rabbitmq/examples/perf/BrokerValue.java | 0 .../examples/perf/BrokerVariable.java | 0 .../com/rabbitmq/examples/perf/Consumer.java | 0 .../examples/perf/MulticastParams.java | 0 .../rabbitmq/examples/perf/MulticastSet.java | 0 .../examples/perf/MulticastValue.java | 0 .../examples/perf/MulticastVariable.java | 0 .../com/rabbitmq/examples/perf/PerfUtil.java | 0 .../com/rabbitmq/examples/perf/Producer.java | 0 .../examples/perf/ProducerConsumerBase.java | 0 .../examples/perf/RateVsLatencyScenario.java | 0 .../com/rabbitmq/examples/perf/Scenario.java | 0 .../examples/perf/ScenarioFactory.java | 0 .../rabbitmq/examples/perf/ScenarioStats.java | 0 .../examples/perf/SimpleScenario.java | 0 .../examples/perf/SimpleScenarioStats.java | 0 .../com/rabbitmq/examples/perf/Stats.java | 0 .../com/rabbitmq/examples/perf/Variable.java | 0 .../rabbitmq/examples/perf/VariableValue.java | 0 .../examples/perf/VaryingScenario.java | 0 .../examples/perf/VaryingScenarioStats.java | 0 .../test/java}/com/rabbitmq/tools/Host.java | 20 +- .../rabbitmq/utility/IntAllocatorTests.java | 0 src/test/resources/build.properties | 23 ++ src/test/resources/config.properties | 7 + .../client/test/server/ServerTests.java | 47 ---- 297 files changed, 408 insertions(+), 172 deletions(-) create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 .settings/org.eclipse.m2e.core.prefs rename src/{ => main/java}/com/rabbitmq/client/Address.java (100%) rename src/{ => main/java}/com/rabbitmq/client/AlreadyClosedException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/AuthenticationFailureException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/BasicProperties.java (100%) rename src/{ => main/java}/com/rabbitmq/client/BlockedListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/Channel.java (100%) rename src/{ => main/java}/com/rabbitmq/client/Command.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ConfirmListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/Connection.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ConnectionFactory.java (100%) rename src/{ => main/java}/com/rabbitmq/client/Consumer.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ConsumerCancelledException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ContentHeader.java (100%) rename src/{ => main/java}/com/rabbitmq/client/DefaultConsumer.java (100%) rename src/{ => main/java}/com/rabbitmq/client/DefaultSaslConfig.java (100%) rename src/{ => main/java}/com/rabbitmq/client/DefaultSocketConfigurator.java (100%) rename src/{ => main/java}/com/rabbitmq/client/Envelope.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ExceptionHandler.java (100%) rename src/{ => main/java}/com/rabbitmq/client/FlowListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/GetResponse.java (100%) rename src/{ => main/java}/com/rabbitmq/client/JDKSaslConfig.java (100%) rename src/{ => main/java}/com/rabbitmq/client/LongString.java (100%) rename src/{ => main/java}/com/rabbitmq/client/MalformedFrameException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/MapRpcServer.java (100%) rename src/{ => main/java}/com/rabbitmq/client/MessageProperties.java (100%) rename src/{ => main/java}/com/rabbitmq/client/Method.java (100%) rename src/{ => main/java}/com/rabbitmq/client/MissedHeartbeatException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/NullTrustManager.java (100%) rename src/{ => main/java}/com/rabbitmq/client/PossibleAuthenticationFailureException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ProtocolVersionMismatchException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/QueueingConsumer.java (100%) rename src/{ => main/java}/com/rabbitmq/client/Recoverable.java (100%) rename src/{ => main/java}/com/rabbitmq/client/RecoveryListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ReturnListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/RpcClient.java (100%) rename src/{ => main/java}/com/rabbitmq/client/RpcServer.java (100%) rename src/{ => main/java}/com/rabbitmq/client/SaslConfig.java (100%) rename src/{ => main/java}/com/rabbitmq/client/SaslMechanism.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ShutdownListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ShutdownNotifier.java (100%) rename src/{ => main/java}/com/rabbitmq/client/ShutdownSignalException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/SocketConfigurator.java (100%) rename src/{ => main/java}/com/rabbitmq/client/StringRpcServer.java (100%) rename src/{ => main/java}/com/rabbitmq/client/TopologyRecoveryException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/UnexpectedFrameError.java (100%) rename src/{ => main/java}/com/rabbitmq/client/UnexpectedMethodError.java (100%) rename src/{ => main/java}/com/rabbitmq/client/UnknownClassOrMethodId.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/AMQBasicProperties.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/AMQChannel.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/AMQCommand.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/AMQConnection.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/AMQContentHeader.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/CRDemoMechanism.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ChannelManager.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ChannelN.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ClientVersion.java.in (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/CommandAssembler.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ConnectionParams.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ConsumerDispatcher.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ConsumerWorkService.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ContentHeaderPropertyReader.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ContentHeaderPropertyWriter.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/DefaultExceptionHandler.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/Environment.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ExternalMechanism.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ForgivingExceptionHandler.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/Frame.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/FrameHandler.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/FrameHandlerFactory.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/HeartbeatSender.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/LongStringHelper.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/Method.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/MethodArgumentReader.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/MethodArgumentWriter.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/NetworkConnection.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/PlainMechanism.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/SetQueue.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ShutdownNotifierComponent.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/SocketFrameHandler.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/StrictExceptionHandler.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/TruncatedInputStream.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/UnknownChannelException.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ValueReader.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/ValueWriter.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/VariableLinkedBlockingQueue.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/Version.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/WorkPool.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/package.html (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/AutorecoveringChannel.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/ConsumerRecoveryListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/QueueRecoveryListener.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedBinding.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedConsumer.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedEntity.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedExchange.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedExchangeBinding.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedNamedEntity.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedQueue.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecordedQueueBinding.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnection.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnectionFactory.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelManager.java (100%) rename src/{ => main/java}/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelN.java (100%) rename src/{ => main/java}/com/rabbitmq/client/package.html (100%) rename src/{ => main/java}/com/rabbitmq/tools/Tracer.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/json/JSONReader.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/json/JSONSerializable.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/json/JSONUtil.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/json/JSONWriter.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/json/package.html (100%) rename src/{ => main/java}/com/rabbitmq/tools/jsonrpc/JsonRpcClient.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/jsonrpc/JsonRpcException.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/jsonrpc/JsonRpcServer.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/jsonrpc/ParameterDescription.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/jsonrpc/ProcedureDescription.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/jsonrpc/ServiceDescription.java (100%) rename src/{ => main/java}/com/rabbitmq/tools/jsonrpc/package.html (100%) rename src/{ => main/java}/com/rabbitmq/tools/package.html (100%) rename src/{ => main/java}/com/rabbitmq/utility/BlockingCell.java (100%) rename src/{ => main/java}/com/rabbitmq/utility/BlockingValueOrException.java (100%) rename src/{ => main/java}/com/rabbitmq/utility/IntAllocator.java (100%) rename src/{ => main/java}/com/rabbitmq/utility/SensibleClone.java (100%) rename src/{ => main/java}/com/rabbitmq/utility/SingleShotLinearTimer.java (100%) rename src/{ => main/java}/com/rabbitmq/utility/Utility.java (100%) rename src/{ => main/java}/com/rabbitmq/utility/ValueOrException.java (100%) rename src/{ => main/java}/com/rabbitmq/utility/package.html (100%) rename {test/src => src/test/java}/com/rabbitmq/client/impl/WorkPoolTests.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/AMQBuilderApiTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/AMQConnectionTest.java (100%) create mode 100644 src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java rename {test/src => src/test/java}/com/rabbitmq/client/test/AmqpUriTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/BlockingCellTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/BrokenFramesTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/BrokerTestCase.java (99%) rename {test/src => src/test/java}/com/rabbitmq/client/test/Bug20004Test.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ChannelNumberAllocationTests.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ClientTests.java (93%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ClonePropertiesTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/CloseInMainLoop.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ConfirmBase.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/JSONReadWriteTest.java (96%) rename {test/src => src/test/java}/com/rabbitmq/client/test/LongStringTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/MultiThreadedChannel.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/QueueingConsumerShutdownTests.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/SharedThreadPoolTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/TableTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/TruncatedInputStreamTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ValueOrExceptionTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/AbstractRejectTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/AlternateExchange.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/BasicGet.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/BindingLifecycle.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/BindingLifecycleBase.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/CcRoutes.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ClusteredTestBase.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Confirm.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ConnectionOpen.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ConnectionRecovery.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ConsumerCancelNotification.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ConsumerCount.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ConsumerPriorities.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/DeadLetterExchange.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/DefaultExchange.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/DirectReplyTo.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/DoubleDeletion.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/DurableOnTransient.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExceptionHandling.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExceptionMessages.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExchangeDeclare.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExchangeDeleteIfUnused.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExchangeDeletePredeclared.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExchangeEquivalenceBase.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExchangeExchangeBindings.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/ExchangeExchangeBindingsAutoDelete.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/FrameMax.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/FunctionalTests.java (96%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/HeadersExchangeValidation.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Heartbeat.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/InternalExchange.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/InvalidAcks.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/InvalidAcksBase.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/InvalidAcksTx.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/MessageCount.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Nack.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/NoRequeueOnCancel.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Nowait.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/PerConsumerPrefetch.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/PerMessageTTL.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/PerQueueTTL.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/PerQueueVsPerMessageTTL.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Policies.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/QosTests.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/QueueExclusivity.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/QueueLease.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/QueueLifecycle.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/QueueSizeLimit.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Recover.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Reject.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/RequeueOnChannelClose.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/RequeueOnClose.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/RequeueOnConnectionClose.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Routing.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/SaslMechanisms.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/TTLHandling.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Tables.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/Transactions.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/UnbindAutoDeleteExchange.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/UnexpectedFrames.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/functional/UserIDHeader.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/performance/CLIHelper.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/performance/QosScaling.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/performance/ScalabilityTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/performance/StressManagement.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/AbsentQueue.java (99%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/AlternateExchangeEquivalence.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/BlockedConnection.java (98%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/Bug19219Test.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/ChannelLimitNegotiation.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/DeadLetterExchangeDurable.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/DurableBindingLifecycle.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/EffectVisibilityCrossNodeTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/ExclusiveQueueDurability.java (98%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/Firehose.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/HATests.java (92%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/LoopbackUsers.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/MemoryAlarms.java (99%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/MessageRecovery.java (98%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/Permissions.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/PersistenceGuarantees.java (100%) create mode 100644 src/test/java/com/rabbitmq/client/test/server/ServerTests.java rename {test/src => src/test/java}/com/rabbitmq/client/test/server/Shutdown.java (74%) rename {test/src => src/test/java}/com/rabbitmq/client/test/server/XDeathHeaderGrowth.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ssl/BadVerifiedConnection.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ssl/SSLTests.java (80%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ssl/UnverifiedConnection.java (100%) rename {test/src => src/test/java}/com/rabbitmq/client/test/ssl/VerifiedConnection.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/BufferPerformanceMetrics.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/ChannelCreationPerformance.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/ConfirmDontLoseMessages.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/ConsumerMain.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/DirectReplyToPerformance.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/FileConsumer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/FileProducer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/HelloClient.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/HelloJsonClient.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/HelloJsonServer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/HelloJsonService.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/HelloServer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/LogTail.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/MulticastMain.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/PerQueueTTLGetter.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/PerQueueTTLPublisher.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/PerfTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/PerfTestMulti.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/ProducerMain.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/SendString.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/SimpleConsumer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/SimpleProducer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/SimpleTopicConsumer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/SimpleTopicProducer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/SpammyTopicProducer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/StressPersister.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/TestMain.java (98%) rename {test/src => src/test/java}/com/rabbitmq/examples/TracerConcurrencyTest.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/Broker.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/BrokerValue.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/BrokerVariable.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/Consumer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/MulticastParams.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/MulticastSet.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/MulticastValue.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/MulticastVariable.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/PerfUtil.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/Producer.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/ProducerConsumerBase.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/RateVsLatencyScenario.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/Scenario.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/ScenarioFactory.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/ScenarioStats.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/SimpleScenario.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/SimpleScenarioStats.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/Stats.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/Variable.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/VariableValue.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/VaryingScenario.java (100%) rename {test/src => src/test/java}/com/rabbitmq/examples/perf/VaryingScenarioStats.java (100%) rename {test/src => src/test/java}/com/rabbitmq/tools/Host.java (89%) rename {test/src => src/test/java}/com/rabbitmq/utility/IntAllocatorTests.java (100%) create mode 100644 src/test/resources/build.properties create mode 100644 src/test/resources/config.properties delete mode 100644 test/src/com/rabbitmq/client/test/server/ServerTests.java diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..cdfe4f1b66 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..714351aec1 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000000..f897a7f1cb --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/build.properties b/build.properties index 21ba4ff08a..5dcb956553 100644 --- a/build.properties +++ b/build.properties @@ -7,7 +7,7 @@ bundle.symbolicName=com.rabbitmq.client bundlor.home=bundlor dist.out=${build.out}/dist impl.version=0.0.0 -javac.debug=true +javac.debug=false javac.out=${build.out}/classes javadoc.out=build/doc/api lib.out=${build.out}/lib @@ -20,4 +20,5 @@ src.generated=${build.out}/gensrc standard.javac.source=1.6 standard.javac.target=1.6 test.javac.out=${build.out}/test/classes -test.src.home=test/src +test.src.home=src/test/java +maven.javac.source=src/main/java diff --git a/pom.xml b/pom.xml index 5db8422d17..6a8e93fae9 100644 --- a/pom.xml +++ b/pom.xml @@ -1,77 +1,127 @@ - - 4.0.0 - com.rabbitmq - amqp-client - VERSION - jar - RabbitMQ Java Client - RabbitMQ Java client - http://www.rabbitmq.com - - - - ASL 2.0 - http://www.apache.org/licenses/LICENSE-2.0.html - repo - - - GPL v2 - http://www.gnu.org/licenses/gpl-2.0.txt - repo - - - MPL 1.1 - http://www.mozilla.org/MPL/MPL-1.1.txt - repo - - - - - https://github.com/rabbitmq/rabbitmq-java-client.git - scm:git:https://github.com/rabbitmq/rabbitmq-java-client.git - - - - - rabbitmq.team - The RabbitMQ Team - - Developer - - - - - - - - commons-cli - commons-cli - 1.1 - test - - - - commons-io - commons-io - 1.2 - test - - - - junit - junit - 4.12 - test - - - - - - - sonatype-nexus-staging - Nexus Release Repository - http://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - + + 4.0.0 + com.rabbitmq + rabbitmq-java-client + VERSION + jar + RabbitMQ Java Client + RabbitMQ Java client + http://www.rabbitmq.com + + + ASL 2.0 + http://www.apache.org/licenses/LICENSE-2.0.html + repo + + + GPL v2 + http://www.gnu.org/licenses/gpl-2.0.txt + repo + + + MPL 1.1 + http://www.mozilla.org/MPL/MPL-1.1.txt + repo + + + + https://github.com/rabbitmq/rabbitmq-java-client.git + scm:git:https://github.com/rabbitmq/rabbitmq-java-client.git + + + + rabbitmq.team + The RabbitMQ Team + + Developer + + + + + UTF-8 + + + + commons-cli + commons-cli + 1.1 + test + + + commons-io + commons-io + 1.2 + test + + + junit + junit + 4.12 + test + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.10 + + + add-source + generate-sources + + add-source + + + + build/gensrc + + + + + + + maven-compiler-plugin + 3.2 + + 1.8 + 1.8 + + -Xlint:deprecation + -Xlint:unchecked + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.9 + + + ${project.build.directory} + + true + + **/ClientTests.* + **/FunctionalTests.* + **/SSLTests.* + **/ServerTests.* + **/FunctionalTests.* + **/HATests.* + **/TestMain.* + + + + + + + + sonatype-nexus-staging + Nexus Release Repository + http://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + \ No newline at end of file diff --git a/src/com/rabbitmq/client/Address.java b/src/main/java/com/rabbitmq/client/Address.java similarity index 100% rename from src/com/rabbitmq/client/Address.java rename to src/main/java/com/rabbitmq/client/Address.java diff --git a/src/com/rabbitmq/client/AlreadyClosedException.java b/src/main/java/com/rabbitmq/client/AlreadyClosedException.java similarity index 100% rename from src/com/rabbitmq/client/AlreadyClosedException.java rename to src/main/java/com/rabbitmq/client/AlreadyClosedException.java diff --git a/src/com/rabbitmq/client/AuthenticationFailureException.java b/src/main/java/com/rabbitmq/client/AuthenticationFailureException.java similarity index 100% rename from src/com/rabbitmq/client/AuthenticationFailureException.java rename to src/main/java/com/rabbitmq/client/AuthenticationFailureException.java diff --git a/src/com/rabbitmq/client/BasicProperties.java b/src/main/java/com/rabbitmq/client/BasicProperties.java similarity index 100% rename from src/com/rabbitmq/client/BasicProperties.java rename to src/main/java/com/rabbitmq/client/BasicProperties.java diff --git a/src/com/rabbitmq/client/BlockedListener.java b/src/main/java/com/rabbitmq/client/BlockedListener.java similarity index 100% rename from src/com/rabbitmq/client/BlockedListener.java rename to src/main/java/com/rabbitmq/client/BlockedListener.java diff --git a/src/com/rabbitmq/client/Channel.java b/src/main/java/com/rabbitmq/client/Channel.java similarity index 100% rename from src/com/rabbitmq/client/Channel.java rename to src/main/java/com/rabbitmq/client/Channel.java diff --git a/src/com/rabbitmq/client/Command.java b/src/main/java/com/rabbitmq/client/Command.java similarity index 100% rename from src/com/rabbitmq/client/Command.java rename to src/main/java/com/rabbitmq/client/Command.java diff --git a/src/com/rabbitmq/client/ConfirmListener.java b/src/main/java/com/rabbitmq/client/ConfirmListener.java similarity index 100% rename from src/com/rabbitmq/client/ConfirmListener.java rename to src/main/java/com/rabbitmq/client/ConfirmListener.java diff --git a/src/com/rabbitmq/client/Connection.java b/src/main/java/com/rabbitmq/client/Connection.java similarity index 100% rename from src/com/rabbitmq/client/Connection.java rename to src/main/java/com/rabbitmq/client/Connection.java diff --git a/src/com/rabbitmq/client/ConnectionFactory.java b/src/main/java/com/rabbitmq/client/ConnectionFactory.java similarity index 100% rename from src/com/rabbitmq/client/ConnectionFactory.java rename to src/main/java/com/rabbitmq/client/ConnectionFactory.java diff --git a/src/com/rabbitmq/client/Consumer.java b/src/main/java/com/rabbitmq/client/Consumer.java similarity index 100% rename from src/com/rabbitmq/client/Consumer.java rename to src/main/java/com/rabbitmq/client/Consumer.java diff --git a/src/com/rabbitmq/client/ConsumerCancelledException.java b/src/main/java/com/rabbitmq/client/ConsumerCancelledException.java similarity index 100% rename from src/com/rabbitmq/client/ConsumerCancelledException.java rename to src/main/java/com/rabbitmq/client/ConsumerCancelledException.java diff --git a/src/com/rabbitmq/client/ContentHeader.java b/src/main/java/com/rabbitmq/client/ContentHeader.java similarity index 100% rename from src/com/rabbitmq/client/ContentHeader.java rename to src/main/java/com/rabbitmq/client/ContentHeader.java diff --git a/src/com/rabbitmq/client/DefaultConsumer.java b/src/main/java/com/rabbitmq/client/DefaultConsumer.java similarity index 100% rename from src/com/rabbitmq/client/DefaultConsumer.java rename to src/main/java/com/rabbitmq/client/DefaultConsumer.java diff --git a/src/com/rabbitmq/client/DefaultSaslConfig.java b/src/main/java/com/rabbitmq/client/DefaultSaslConfig.java similarity index 100% rename from src/com/rabbitmq/client/DefaultSaslConfig.java rename to src/main/java/com/rabbitmq/client/DefaultSaslConfig.java diff --git a/src/com/rabbitmq/client/DefaultSocketConfigurator.java b/src/main/java/com/rabbitmq/client/DefaultSocketConfigurator.java similarity index 100% rename from src/com/rabbitmq/client/DefaultSocketConfigurator.java rename to src/main/java/com/rabbitmq/client/DefaultSocketConfigurator.java diff --git a/src/com/rabbitmq/client/Envelope.java b/src/main/java/com/rabbitmq/client/Envelope.java similarity index 100% rename from src/com/rabbitmq/client/Envelope.java rename to src/main/java/com/rabbitmq/client/Envelope.java diff --git a/src/com/rabbitmq/client/ExceptionHandler.java b/src/main/java/com/rabbitmq/client/ExceptionHandler.java similarity index 100% rename from src/com/rabbitmq/client/ExceptionHandler.java rename to src/main/java/com/rabbitmq/client/ExceptionHandler.java diff --git a/src/com/rabbitmq/client/FlowListener.java b/src/main/java/com/rabbitmq/client/FlowListener.java similarity index 100% rename from src/com/rabbitmq/client/FlowListener.java rename to src/main/java/com/rabbitmq/client/FlowListener.java diff --git a/src/com/rabbitmq/client/GetResponse.java b/src/main/java/com/rabbitmq/client/GetResponse.java similarity index 100% rename from src/com/rabbitmq/client/GetResponse.java rename to src/main/java/com/rabbitmq/client/GetResponse.java diff --git a/src/com/rabbitmq/client/JDKSaslConfig.java b/src/main/java/com/rabbitmq/client/JDKSaslConfig.java similarity index 100% rename from src/com/rabbitmq/client/JDKSaslConfig.java rename to src/main/java/com/rabbitmq/client/JDKSaslConfig.java diff --git a/src/com/rabbitmq/client/LongString.java b/src/main/java/com/rabbitmq/client/LongString.java similarity index 100% rename from src/com/rabbitmq/client/LongString.java rename to src/main/java/com/rabbitmq/client/LongString.java diff --git a/src/com/rabbitmq/client/MalformedFrameException.java b/src/main/java/com/rabbitmq/client/MalformedFrameException.java similarity index 100% rename from src/com/rabbitmq/client/MalformedFrameException.java rename to src/main/java/com/rabbitmq/client/MalformedFrameException.java diff --git a/src/com/rabbitmq/client/MapRpcServer.java b/src/main/java/com/rabbitmq/client/MapRpcServer.java similarity index 100% rename from src/com/rabbitmq/client/MapRpcServer.java rename to src/main/java/com/rabbitmq/client/MapRpcServer.java diff --git a/src/com/rabbitmq/client/MessageProperties.java b/src/main/java/com/rabbitmq/client/MessageProperties.java similarity index 100% rename from src/com/rabbitmq/client/MessageProperties.java rename to src/main/java/com/rabbitmq/client/MessageProperties.java diff --git a/src/com/rabbitmq/client/Method.java b/src/main/java/com/rabbitmq/client/Method.java similarity index 100% rename from src/com/rabbitmq/client/Method.java rename to src/main/java/com/rabbitmq/client/Method.java diff --git a/src/com/rabbitmq/client/MissedHeartbeatException.java b/src/main/java/com/rabbitmq/client/MissedHeartbeatException.java similarity index 100% rename from src/com/rabbitmq/client/MissedHeartbeatException.java rename to src/main/java/com/rabbitmq/client/MissedHeartbeatException.java diff --git a/src/com/rabbitmq/client/NullTrustManager.java b/src/main/java/com/rabbitmq/client/NullTrustManager.java similarity index 100% rename from src/com/rabbitmq/client/NullTrustManager.java rename to src/main/java/com/rabbitmq/client/NullTrustManager.java diff --git a/src/com/rabbitmq/client/PossibleAuthenticationFailureException.java b/src/main/java/com/rabbitmq/client/PossibleAuthenticationFailureException.java similarity index 100% rename from src/com/rabbitmq/client/PossibleAuthenticationFailureException.java rename to src/main/java/com/rabbitmq/client/PossibleAuthenticationFailureException.java diff --git a/src/com/rabbitmq/client/ProtocolVersionMismatchException.java b/src/main/java/com/rabbitmq/client/ProtocolVersionMismatchException.java similarity index 100% rename from src/com/rabbitmq/client/ProtocolVersionMismatchException.java rename to src/main/java/com/rabbitmq/client/ProtocolVersionMismatchException.java diff --git a/src/com/rabbitmq/client/QueueingConsumer.java b/src/main/java/com/rabbitmq/client/QueueingConsumer.java similarity index 100% rename from src/com/rabbitmq/client/QueueingConsumer.java rename to src/main/java/com/rabbitmq/client/QueueingConsumer.java diff --git a/src/com/rabbitmq/client/Recoverable.java b/src/main/java/com/rabbitmq/client/Recoverable.java similarity index 100% rename from src/com/rabbitmq/client/Recoverable.java rename to src/main/java/com/rabbitmq/client/Recoverable.java diff --git a/src/com/rabbitmq/client/RecoveryListener.java b/src/main/java/com/rabbitmq/client/RecoveryListener.java similarity index 100% rename from src/com/rabbitmq/client/RecoveryListener.java rename to src/main/java/com/rabbitmq/client/RecoveryListener.java diff --git a/src/com/rabbitmq/client/ReturnListener.java b/src/main/java/com/rabbitmq/client/ReturnListener.java similarity index 100% rename from src/com/rabbitmq/client/ReturnListener.java rename to src/main/java/com/rabbitmq/client/ReturnListener.java diff --git a/src/com/rabbitmq/client/RpcClient.java b/src/main/java/com/rabbitmq/client/RpcClient.java similarity index 100% rename from src/com/rabbitmq/client/RpcClient.java rename to src/main/java/com/rabbitmq/client/RpcClient.java diff --git a/src/com/rabbitmq/client/RpcServer.java b/src/main/java/com/rabbitmq/client/RpcServer.java similarity index 100% rename from src/com/rabbitmq/client/RpcServer.java rename to src/main/java/com/rabbitmq/client/RpcServer.java diff --git a/src/com/rabbitmq/client/SaslConfig.java b/src/main/java/com/rabbitmq/client/SaslConfig.java similarity index 100% rename from src/com/rabbitmq/client/SaslConfig.java rename to src/main/java/com/rabbitmq/client/SaslConfig.java diff --git a/src/com/rabbitmq/client/SaslMechanism.java b/src/main/java/com/rabbitmq/client/SaslMechanism.java similarity index 100% rename from src/com/rabbitmq/client/SaslMechanism.java rename to src/main/java/com/rabbitmq/client/SaslMechanism.java diff --git a/src/com/rabbitmq/client/ShutdownListener.java b/src/main/java/com/rabbitmq/client/ShutdownListener.java similarity index 100% rename from src/com/rabbitmq/client/ShutdownListener.java rename to src/main/java/com/rabbitmq/client/ShutdownListener.java diff --git a/src/com/rabbitmq/client/ShutdownNotifier.java b/src/main/java/com/rabbitmq/client/ShutdownNotifier.java similarity index 100% rename from src/com/rabbitmq/client/ShutdownNotifier.java rename to src/main/java/com/rabbitmq/client/ShutdownNotifier.java diff --git a/src/com/rabbitmq/client/ShutdownSignalException.java b/src/main/java/com/rabbitmq/client/ShutdownSignalException.java similarity index 100% rename from src/com/rabbitmq/client/ShutdownSignalException.java rename to src/main/java/com/rabbitmq/client/ShutdownSignalException.java diff --git a/src/com/rabbitmq/client/SocketConfigurator.java b/src/main/java/com/rabbitmq/client/SocketConfigurator.java similarity index 100% rename from src/com/rabbitmq/client/SocketConfigurator.java rename to src/main/java/com/rabbitmq/client/SocketConfigurator.java diff --git a/src/com/rabbitmq/client/StringRpcServer.java b/src/main/java/com/rabbitmq/client/StringRpcServer.java similarity index 100% rename from src/com/rabbitmq/client/StringRpcServer.java rename to src/main/java/com/rabbitmq/client/StringRpcServer.java diff --git a/src/com/rabbitmq/client/TopologyRecoveryException.java b/src/main/java/com/rabbitmq/client/TopologyRecoveryException.java similarity index 100% rename from src/com/rabbitmq/client/TopologyRecoveryException.java rename to src/main/java/com/rabbitmq/client/TopologyRecoveryException.java diff --git a/src/com/rabbitmq/client/UnexpectedFrameError.java b/src/main/java/com/rabbitmq/client/UnexpectedFrameError.java similarity index 100% rename from src/com/rabbitmq/client/UnexpectedFrameError.java rename to src/main/java/com/rabbitmq/client/UnexpectedFrameError.java diff --git a/src/com/rabbitmq/client/UnexpectedMethodError.java b/src/main/java/com/rabbitmq/client/UnexpectedMethodError.java similarity index 100% rename from src/com/rabbitmq/client/UnexpectedMethodError.java rename to src/main/java/com/rabbitmq/client/UnexpectedMethodError.java diff --git a/src/com/rabbitmq/client/UnknownClassOrMethodId.java b/src/main/java/com/rabbitmq/client/UnknownClassOrMethodId.java similarity index 100% rename from src/com/rabbitmq/client/UnknownClassOrMethodId.java rename to src/main/java/com/rabbitmq/client/UnknownClassOrMethodId.java diff --git a/src/com/rabbitmq/client/impl/AMQBasicProperties.java b/src/main/java/com/rabbitmq/client/impl/AMQBasicProperties.java similarity index 100% rename from src/com/rabbitmq/client/impl/AMQBasicProperties.java rename to src/main/java/com/rabbitmq/client/impl/AMQBasicProperties.java diff --git a/src/com/rabbitmq/client/impl/AMQChannel.java b/src/main/java/com/rabbitmq/client/impl/AMQChannel.java similarity index 100% rename from src/com/rabbitmq/client/impl/AMQChannel.java rename to src/main/java/com/rabbitmq/client/impl/AMQChannel.java diff --git a/src/com/rabbitmq/client/impl/AMQCommand.java b/src/main/java/com/rabbitmq/client/impl/AMQCommand.java similarity index 100% rename from src/com/rabbitmq/client/impl/AMQCommand.java rename to src/main/java/com/rabbitmq/client/impl/AMQCommand.java diff --git a/src/com/rabbitmq/client/impl/AMQConnection.java b/src/main/java/com/rabbitmq/client/impl/AMQConnection.java similarity index 100% rename from src/com/rabbitmq/client/impl/AMQConnection.java rename to src/main/java/com/rabbitmq/client/impl/AMQConnection.java diff --git a/src/com/rabbitmq/client/impl/AMQContentHeader.java b/src/main/java/com/rabbitmq/client/impl/AMQContentHeader.java similarity index 100% rename from src/com/rabbitmq/client/impl/AMQContentHeader.java rename to src/main/java/com/rabbitmq/client/impl/AMQContentHeader.java diff --git a/src/com/rabbitmq/client/impl/CRDemoMechanism.java b/src/main/java/com/rabbitmq/client/impl/CRDemoMechanism.java similarity index 100% rename from src/com/rabbitmq/client/impl/CRDemoMechanism.java rename to src/main/java/com/rabbitmq/client/impl/CRDemoMechanism.java diff --git a/src/com/rabbitmq/client/impl/ChannelManager.java b/src/main/java/com/rabbitmq/client/impl/ChannelManager.java similarity index 100% rename from src/com/rabbitmq/client/impl/ChannelManager.java rename to src/main/java/com/rabbitmq/client/impl/ChannelManager.java diff --git a/src/com/rabbitmq/client/impl/ChannelN.java b/src/main/java/com/rabbitmq/client/impl/ChannelN.java similarity index 100% rename from src/com/rabbitmq/client/impl/ChannelN.java rename to src/main/java/com/rabbitmq/client/impl/ChannelN.java diff --git a/src/com/rabbitmq/client/impl/ClientVersion.java.in b/src/main/java/com/rabbitmq/client/impl/ClientVersion.java.in similarity index 100% rename from src/com/rabbitmq/client/impl/ClientVersion.java.in rename to src/main/java/com/rabbitmq/client/impl/ClientVersion.java.in diff --git a/src/com/rabbitmq/client/impl/CommandAssembler.java b/src/main/java/com/rabbitmq/client/impl/CommandAssembler.java similarity index 100% rename from src/com/rabbitmq/client/impl/CommandAssembler.java rename to src/main/java/com/rabbitmq/client/impl/CommandAssembler.java diff --git a/src/com/rabbitmq/client/impl/ConnectionParams.java b/src/main/java/com/rabbitmq/client/impl/ConnectionParams.java similarity index 100% rename from src/com/rabbitmq/client/impl/ConnectionParams.java rename to src/main/java/com/rabbitmq/client/impl/ConnectionParams.java diff --git a/src/com/rabbitmq/client/impl/ConsumerDispatcher.java b/src/main/java/com/rabbitmq/client/impl/ConsumerDispatcher.java similarity index 100% rename from src/com/rabbitmq/client/impl/ConsumerDispatcher.java rename to src/main/java/com/rabbitmq/client/impl/ConsumerDispatcher.java diff --git a/src/com/rabbitmq/client/impl/ConsumerWorkService.java b/src/main/java/com/rabbitmq/client/impl/ConsumerWorkService.java similarity index 100% rename from src/com/rabbitmq/client/impl/ConsumerWorkService.java rename to src/main/java/com/rabbitmq/client/impl/ConsumerWorkService.java diff --git a/src/com/rabbitmq/client/impl/ContentHeaderPropertyReader.java b/src/main/java/com/rabbitmq/client/impl/ContentHeaderPropertyReader.java similarity index 100% rename from src/com/rabbitmq/client/impl/ContentHeaderPropertyReader.java rename to src/main/java/com/rabbitmq/client/impl/ContentHeaderPropertyReader.java diff --git a/src/com/rabbitmq/client/impl/ContentHeaderPropertyWriter.java b/src/main/java/com/rabbitmq/client/impl/ContentHeaderPropertyWriter.java similarity index 100% rename from src/com/rabbitmq/client/impl/ContentHeaderPropertyWriter.java rename to src/main/java/com/rabbitmq/client/impl/ContentHeaderPropertyWriter.java diff --git a/src/com/rabbitmq/client/impl/DefaultExceptionHandler.java b/src/main/java/com/rabbitmq/client/impl/DefaultExceptionHandler.java similarity index 100% rename from src/com/rabbitmq/client/impl/DefaultExceptionHandler.java rename to src/main/java/com/rabbitmq/client/impl/DefaultExceptionHandler.java diff --git a/src/com/rabbitmq/client/impl/Environment.java b/src/main/java/com/rabbitmq/client/impl/Environment.java similarity index 100% rename from src/com/rabbitmq/client/impl/Environment.java rename to src/main/java/com/rabbitmq/client/impl/Environment.java diff --git a/src/com/rabbitmq/client/impl/ExternalMechanism.java b/src/main/java/com/rabbitmq/client/impl/ExternalMechanism.java similarity index 100% rename from src/com/rabbitmq/client/impl/ExternalMechanism.java rename to src/main/java/com/rabbitmq/client/impl/ExternalMechanism.java diff --git a/src/com/rabbitmq/client/impl/ForgivingExceptionHandler.java b/src/main/java/com/rabbitmq/client/impl/ForgivingExceptionHandler.java similarity index 100% rename from src/com/rabbitmq/client/impl/ForgivingExceptionHandler.java rename to src/main/java/com/rabbitmq/client/impl/ForgivingExceptionHandler.java diff --git a/src/com/rabbitmq/client/impl/Frame.java b/src/main/java/com/rabbitmq/client/impl/Frame.java similarity index 100% rename from src/com/rabbitmq/client/impl/Frame.java rename to src/main/java/com/rabbitmq/client/impl/Frame.java diff --git a/src/com/rabbitmq/client/impl/FrameHandler.java b/src/main/java/com/rabbitmq/client/impl/FrameHandler.java similarity index 100% rename from src/com/rabbitmq/client/impl/FrameHandler.java rename to src/main/java/com/rabbitmq/client/impl/FrameHandler.java diff --git a/src/com/rabbitmq/client/impl/FrameHandlerFactory.java b/src/main/java/com/rabbitmq/client/impl/FrameHandlerFactory.java similarity index 100% rename from src/com/rabbitmq/client/impl/FrameHandlerFactory.java rename to src/main/java/com/rabbitmq/client/impl/FrameHandlerFactory.java diff --git a/src/com/rabbitmq/client/impl/HeartbeatSender.java b/src/main/java/com/rabbitmq/client/impl/HeartbeatSender.java similarity index 100% rename from src/com/rabbitmq/client/impl/HeartbeatSender.java rename to src/main/java/com/rabbitmq/client/impl/HeartbeatSender.java diff --git a/src/com/rabbitmq/client/impl/LongStringHelper.java b/src/main/java/com/rabbitmq/client/impl/LongStringHelper.java similarity index 100% rename from src/com/rabbitmq/client/impl/LongStringHelper.java rename to src/main/java/com/rabbitmq/client/impl/LongStringHelper.java diff --git a/src/com/rabbitmq/client/impl/Method.java b/src/main/java/com/rabbitmq/client/impl/Method.java similarity index 100% rename from src/com/rabbitmq/client/impl/Method.java rename to src/main/java/com/rabbitmq/client/impl/Method.java diff --git a/src/com/rabbitmq/client/impl/MethodArgumentReader.java b/src/main/java/com/rabbitmq/client/impl/MethodArgumentReader.java similarity index 100% rename from src/com/rabbitmq/client/impl/MethodArgumentReader.java rename to src/main/java/com/rabbitmq/client/impl/MethodArgumentReader.java diff --git a/src/com/rabbitmq/client/impl/MethodArgumentWriter.java b/src/main/java/com/rabbitmq/client/impl/MethodArgumentWriter.java similarity index 100% rename from src/com/rabbitmq/client/impl/MethodArgumentWriter.java rename to src/main/java/com/rabbitmq/client/impl/MethodArgumentWriter.java diff --git a/src/com/rabbitmq/client/impl/NetworkConnection.java b/src/main/java/com/rabbitmq/client/impl/NetworkConnection.java similarity index 100% rename from src/com/rabbitmq/client/impl/NetworkConnection.java rename to src/main/java/com/rabbitmq/client/impl/NetworkConnection.java diff --git a/src/com/rabbitmq/client/impl/PlainMechanism.java b/src/main/java/com/rabbitmq/client/impl/PlainMechanism.java similarity index 100% rename from src/com/rabbitmq/client/impl/PlainMechanism.java rename to src/main/java/com/rabbitmq/client/impl/PlainMechanism.java diff --git a/src/com/rabbitmq/client/impl/SetQueue.java b/src/main/java/com/rabbitmq/client/impl/SetQueue.java similarity index 100% rename from src/com/rabbitmq/client/impl/SetQueue.java rename to src/main/java/com/rabbitmq/client/impl/SetQueue.java diff --git a/src/com/rabbitmq/client/impl/ShutdownNotifierComponent.java b/src/main/java/com/rabbitmq/client/impl/ShutdownNotifierComponent.java similarity index 100% rename from src/com/rabbitmq/client/impl/ShutdownNotifierComponent.java rename to src/main/java/com/rabbitmq/client/impl/ShutdownNotifierComponent.java diff --git a/src/com/rabbitmq/client/impl/SocketFrameHandler.java b/src/main/java/com/rabbitmq/client/impl/SocketFrameHandler.java similarity index 100% rename from src/com/rabbitmq/client/impl/SocketFrameHandler.java rename to src/main/java/com/rabbitmq/client/impl/SocketFrameHandler.java diff --git a/src/com/rabbitmq/client/impl/StrictExceptionHandler.java b/src/main/java/com/rabbitmq/client/impl/StrictExceptionHandler.java similarity index 100% rename from src/com/rabbitmq/client/impl/StrictExceptionHandler.java rename to src/main/java/com/rabbitmq/client/impl/StrictExceptionHandler.java diff --git a/src/com/rabbitmq/client/impl/TruncatedInputStream.java b/src/main/java/com/rabbitmq/client/impl/TruncatedInputStream.java similarity index 100% rename from src/com/rabbitmq/client/impl/TruncatedInputStream.java rename to src/main/java/com/rabbitmq/client/impl/TruncatedInputStream.java diff --git a/src/com/rabbitmq/client/impl/UnknownChannelException.java b/src/main/java/com/rabbitmq/client/impl/UnknownChannelException.java similarity index 100% rename from src/com/rabbitmq/client/impl/UnknownChannelException.java rename to src/main/java/com/rabbitmq/client/impl/UnknownChannelException.java diff --git a/src/com/rabbitmq/client/impl/ValueReader.java b/src/main/java/com/rabbitmq/client/impl/ValueReader.java similarity index 100% rename from src/com/rabbitmq/client/impl/ValueReader.java rename to src/main/java/com/rabbitmq/client/impl/ValueReader.java diff --git a/src/com/rabbitmq/client/impl/ValueWriter.java b/src/main/java/com/rabbitmq/client/impl/ValueWriter.java similarity index 100% rename from src/com/rabbitmq/client/impl/ValueWriter.java rename to src/main/java/com/rabbitmq/client/impl/ValueWriter.java diff --git a/src/com/rabbitmq/client/impl/VariableLinkedBlockingQueue.java b/src/main/java/com/rabbitmq/client/impl/VariableLinkedBlockingQueue.java similarity index 100% rename from src/com/rabbitmq/client/impl/VariableLinkedBlockingQueue.java rename to src/main/java/com/rabbitmq/client/impl/VariableLinkedBlockingQueue.java diff --git a/src/com/rabbitmq/client/impl/Version.java b/src/main/java/com/rabbitmq/client/impl/Version.java similarity index 100% rename from src/com/rabbitmq/client/impl/Version.java rename to src/main/java/com/rabbitmq/client/impl/Version.java diff --git a/src/com/rabbitmq/client/impl/WorkPool.java b/src/main/java/com/rabbitmq/client/impl/WorkPool.java similarity index 100% rename from src/com/rabbitmq/client/impl/WorkPool.java rename to src/main/java/com/rabbitmq/client/impl/WorkPool.java diff --git a/src/com/rabbitmq/client/impl/package.html b/src/main/java/com/rabbitmq/client/impl/package.html similarity index 100% rename from src/com/rabbitmq/client/impl/package.html rename to src/main/java/com/rabbitmq/client/impl/package.html diff --git a/src/com/rabbitmq/client/impl/recovery/AutorecoveringChannel.java b/src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringChannel.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/AutorecoveringChannel.java rename to src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringChannel.java diff --git a/src/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java b/src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java rename to src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java diff --git a/src/com/rabbitmq/client/impl/recovery/ConsumerRecoveryListener.java b/src/main/java/com/rabbitmq/client/impl/recovery/ConsumerRecoveryListener.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/ConsumerRecoveryListener.java rename to src/main/java/com/rabbitmq/client/impl/recovery/ConsumerRecoveryListener.java diff --git a/src/com/rabbitmq/client/impl/recovery/QueueRecoveryListener.java b/src/main/java/com/rabbitmq/client/impl/recovery/QueueRecoveryListener.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/QueueRecoveryListener.java rename to src/main/java/com/rabbitmq/client/impl/recovery/QueueRecoveryListener.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedBinding.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedBinding.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedBinding.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedBinding.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedConsumer.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedConsumer.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedConsumer.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedConsumer.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedEntity.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedEntity.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedEntity.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedEntity.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedExchange.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedExchange.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedExchange.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedExchange.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedExchangeBinding.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedExchangeBinding.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedExchangeBinding.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedExchangeBinding.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedNamedEntity.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedNamedEntity.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedNamedEntity.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedNamedEntity.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedQueue.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedQueue.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedQueue.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedQueue.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecordedQueueBinding.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecordedQueueBinding.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecordedQueueBinding.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecordedQueueBinding.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnection.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnection.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnection.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnection.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnectionFactory.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnectionFactory.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnectionFactory.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnectionFactory.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelManager.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelManager.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelManager.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelManager.java diff --git a/src/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelN.java b/src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelN.java similarity index 100% rename from src/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelN.java rename to src/main/java/com/rabbitmq/client/impl/recovery/RecoveryAwareChannelN.java diff --git a/src/com/rabbitmq/client/package.html b/src/main/java/com/rabbitmq/client/package.html similarity index 100% rename from src/com/rabbitmq/client/package.html rename to src/main/java/com/rabbitmq/client/package.html diff --git a/src/com/rabbitmq/tools/Tracer.java b/src/main/java/com/rabbitmq/tools/Tracer.java similarity index 100% rename from src/com/rabbitmq/tools/Tracer.java rename to src/main/java/com/rabbitmq/tools/Tracer.java diff --git a/src/com/rabbitmq/tools/json/JSONReader.java b/src/main/java/com/rabbitmq/tools/json/JSONReader.java similarity index 100% rename from src/com/rabbitmq/tools/json/JSONReader.java rename to src/main/java/com/rabbitmq/tools/json/JSONReader.java diff --git a/src/com/rabbitmq/tools/json/JSONSerializable.java b/src/main/java/com/rabbitmq/tools/json/JSONSerializable.java similarity index 100% rename from src/com/rabbitmq/tools/json/JSONSerializable.java rename to src/main/java/com/rabbitmq/tools/json/JSONSerializable.java diff --git a/src/com/rabbitmq/tools/json/JSONUtil.java b/src/main/java/com/rabbitmq/tools/json/JSONUtil.java similarity index 100% rename from src/com/rabbitmq/tools/json/JSONUtil.java rename to src/main/java/com/rabbitmq/tools/json/JSONUtil.java diff --git a/src/com/rabbitmq/tools/json/JSONWriter.java b/src/main/java/com/rabbitmq/tools/json/JSONWriter.java similarity index 100% rename from src/com/rabbitmq/tools/json/JSONWriter.java rename to src/main/java/com/rabbitmq/tools/json/JSONWriter.java diff --git a/src/com/rabbitmq/tools/json/package.html b/src/main/java/com/rabbitmq/tools/json/package.html similarity index 100% rename from src/com/rabbitmq/tools/json/package.html rename to src/main/java/com/rabbitmq/tools/json/package.html diff --git a/src/com/rabbitmq/tools/jsonrpc/JsonRpcClient.java b/src/main/java/com/rabbitmq/tools/jsonrpc/JsonRpcClient.java similarity index 100% rename from src/com/rabbitmq/tools/jsonrpc/JsonRpcClient.java rename to src/main/java/com/rabbitmq/tools/jsonrpc/JsonRpcClient.java diff --git a/src/com/rabbitmq/tools/jsonrpc/JsonRpcException.java b/src/main/java/com/rabbitmq/tools/jsonrpc/JsonRpcException.java similarity index 100% rename from src/com/rabbitmq/tools/jsonrpc/JsonRpcException.java rename to src/main/java/com/rabbitmq/tools/jsonrpc/JsonRpcException.java diff --git a/src/com/rabbitmq/tools/jsonrpc/JsonRpcServer.java b/src/main/java/com/rabbitmq/tools/jsonrpc/JsonRpcServer.java similarity index 100% rename from src/com/rabbitmq/tools/jsonrpc/JsonRpcServer.java rename to src/main/java/com/rabbitmq/tools/jsonrpc/JsonRpcServer.java diff --git a/src/com/rabbitmq/tools/jsonrpc/ParameterDescription.java b/src/main/java/com/rabbitmq/tools/jsonrpc/ParameterDescription.java similarity index 100% rename from src/com/rabbitmq/tools/jsonrpc/ParameterDescription.java rename to src/main/java/com/rabbitmq/tools/jsonrpc/ParameterDescription.java diff --git a/src/com/rabbitmq/tools/jsonrpc/ProcedureDescription.java b/src/main/java/com/rabbitmq/tools/jsonrpc/ProcedureDescription.java similarity index 100% rename from src/com/rabbitmq/tools/jsonrpc/ProcedureDescription.java rename to src/main/java/com/rabbitmq/tools/jsonrpc/ProcedureDescription.java diff --git a/src/com/rabbitmq/tools/jsonrpc/ServiceDescription.java b/src/main/java/com/rabbitmq/tools/jsonrpc/ServiceDescription.java similarity index 100% rename from src/com/rabbitmq/tools/jsonrpc/ServiceDescription.java rename to src/main/java/com/rabbitmq/tools/jsonrpc/ServiceDescription.java diff --git a/src/com/rabbitmq/tools/jsonrpc/package.html b/src/main/java/com/rabbitmq/tools/jsonrpc/package.html similarity index 100% rename from src/com/rabbitmq/tools/jsonrpc/package.html rename to src/main/java/com/rabbitmq/tools/jsonrpc/package.html diff --git a/src/com/rabbitmq/tools/package.html b/src/main/java/com/rabbitmq/tools/package.html similarity index 100% rename from src/com/rabbitmq/tools/package.html rename to src/main/java/com/rabbitmq/tools/package.html diff --git a/src/com/rabbitmq/utility/BlockingCell.java b/src/main/java/com/rabbitmq/utility/BlockingCell.java similarity index 100% rename from src/com/rabbitmq/utility/BlockingCell.java rename to src/main/java/com/rabbitmq/utility/BlockingCell.java diff --git a/src/com/rabbitmq/utility/BlockingValueOrException.java b/src/main/java/com/rabbitmq/utility/BlockingValueOrException.java similarity index 100% rename from src/com/rabbitmq/utility/BlockingValueOrException.java rename to src/main/java/com/rabbitmq/utility/BlockingValueOrException.java diff --git a/src/com/rabbitmq/utility/IntAllocator.java b/src/main/java/com/rabbitmq/utility/IntAllocator.java similarity index 100% rename from src/com/rabbitmq/utility/IntAllocator.java rename to src/main/java/com/rabbitmq/utility/IntAllocator.java diff --git a/src/com/rabbitmq/utility/SensibleClone.java b/src/main/java/com/rabbitmq/utility/SensibleClone.java similarity index 100% rename from src/com/rabbitmq/utility/SensibleClone.java rename to src/main/java/com/rabbitmq/utility/SensibleClone.java diff --git a/src/com/rabbitmq/utility/SingleShotLinearTimer.java b/src/main/java/com/rabbitmq/utility/SingleShotLinearTimer.java similarity index 100% rename from src/com/rabbitmq/utility/SingleShotLinearTimer.java rename to src/main/java/com/rabbitmq/utility/SingleShotLinearTimer.java diff --git a/src/com/rabbitmq/utility/Utility.java b/src/main/java/com/rabbitmq/utility/Utility.java similarity index 100% rename from src/com/rabbitmq/utility/Utility.java rename to src/main/java/com/rabbitmq/utility/Utility.java diff --git a/src/com/rabbitmq/utility/ValueOrException.java b/src/main/java/com/rabbitmq/utility/ValueOrException.java similarity index 100% rename from src/com/rabbitmq/utility/ValueOrException.java rename to src/main/java/com/rabbitmq/utility/ValueOrException.java diff --git a/src/com/rabbitmq/utility/package.html b/src/main/java/com/rabbitmq/utility/package.html similarity index 100% rename from src/com/rabbitmq/utility/package.html rename to src/main/java/com/rabbitmq/utility/package.html diff --git a/test/src/com/rabbitmq/client/impl/WorkPoolTests.java b/src/test/java/com/rabbitmq/client/impl/WorkPoolTests.java similarity index 100% rename from test/src/com/rabbitmq/client/impl/WorkPoolTests.java rename to src/test/java/com/rabbitmq/client/impl/WorkPoolTests.java diff --git a/test/src/com/rabbitmq/client/test/AMQBuilderApiTest.java b/src/test/java/com/rabbitmq/client/test/AMQBuilderApiTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/AMQBuilderApiTest.java rename to src/test/java/com/rabbitmq/client/test/AMQBuilderApiTest.java diff --git a/test/src/com/rabbitmq/client/test/AMQConnectionTest.java b/src/test/java/com/rabbitmq/client/test/AMQConnectionTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/AMQConnectionTest.java rename to src/test/java/com/rabbitmq/client/test/AMQConnectionTest.java diff --git a/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java b/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java new file mode 100644 index 0000000000..43a2094dd5 --- /dev/null +++ b/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java @@ -0,0 +1,127 @@ +package com.rabbitmq.client.test; + +import java.io.File; +import java.io.IOException; +import java.net.Socket; +import java.nio.file.FileSystems; +import java.util.Properties; + +import junit.framework.Test; +import junit.framework.TestResult; +import junit.framework.TestSuite; + +import org.junit.Assume; + +public abstract class AbstractRMQTestSuite extends TestSuite { + private static final int DEFAULT_SSL_PORT = 443; + + private static boolean buildPropertiesFound = false; + + private static final Properties TESTS_PROPS = new Properties(System.getProperties()); + static { + TESTS_PROPS.setProperty("make.bin", System.getenv("MAKE") == null ? "make" : System.getenv("MAKE")); + try { + TESTS_PROPS.load(AbstractRMQTestSuite.class.getClassLoader().getResourceAsStream("build.properties")); + TESTS_PROPS.load(AbstractRMQTestSuite.class.getClassLoader().getResourceAsStream("config.properties")); + buildPropertiesFound = true; + } catch (IOException e) { + System.err + .println("build.properties or config.properties not found in classpath,copy build.properties and config.properties into src/test/resources"); + } + } + + public AbstractRMQTestSuite() { + System.setProperties(TESTS_PROPS); + } + + public static boolean isUnderUmbrella() { + return new File("../../UMBRELLA.md").isFile(); + } + + public static boolean isSSlAvailable() { + System.setProperty("SSL_CERTS_DIR", System.getenv("SSL_CERTS_DIR")); + String sslClientPath = System.getProperty("SSL_CERTS_DIR") + FileSystems.getDefault().getSeparator() + "client"; + System.setProperty("CLIENT_KEYSTORE_PHRASE", System.getenv("bunnies")); + System.setProperty("SSL_P12_PASSWORD", System.getenv("PASSWORD")); + // IF certificate is present and some server is listening on port 443 + if (new File(sslClientPath).isFile() && checkServerListening(System.getProperty("broker.hostname"), DEFAULT_SSL_PORT)) { + System.setProperty("SSL_AVAILABLE", sslClientPath); + return true; + } else + return false; + } + + private static boolean checkServerListening(String host, int port) { + Socket s = null; + try { + s = new Socket(host, port); + return true; + } catch (Exception e) { + return false; + } finally { + if (s != null) + try { + s.close(); + } catch (Exception e) { + } + } + } + + public void runTest(Test test, TestResult result) { + // Run the tests only if build.properties was found + Assume.assumeTrue(buildPropertiesFound); + test.run(result); + } + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +} diff --git a/test/src/com/rabbitmq/client/test/AmqpUriTest.java b/src/test/java/com/rabbitmq/client/test/AmqpUriTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/AmqpUriTest.java rename to src/test/java/com/rabbitmq/client/test/AmqpUriTest.java diff --git a/test/src/com/rabbitmq/client/test/BlockingCellTest.java b/src/test/java/com/rabbitmq/client/test/BlockingCellTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/BlockingCellTest.java rename to src/test/java/com/rabbitmq/client/test/BlockingCellTest.java diff --git a/test/src/com/rabbitmq/client/test/BrokenFramesTest.java b/src/test/java/com/rabbitmq/client/test/BrokenFramesTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/BrokenFramesTest.java rename to src/test/java/com/rabbitmq/client/test/BrokenFramesTest.java diff --git a/test/src/com/rabbitmq/client/test/BrokerTestCase.java b/src/test/java/com/rabbitmq/client/test/BrokerTestCase.java similarity index 99% rename from test/src/com/rabbitmq/client/test/BrokerTestCase.java rename to src/test/java/com/rabbitmq/client/test/BrokerTestCase.java index 656c59893f..2b660a6cf5 100644 --- a/test/src/com/rabbitmq/client/test/BrokerTestCase.java +++ b/src/test/java/com/rabbitmq/client/test/BrokerTestCase.java @@ -24,23 +24,21 @@ import java.util.UUID; import java.util.concurrent.TimeoutException; +import javax.net.ssl.SSLContext; + import junit.framework.TestCase; +import com.rabbitmq.client.AMQP; +import com.rabbitmq.client.AlreadyClosedException; import com.rabbitmq.client.Channel; -import com.rabbitmq.client.Command; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.GetResponse; import com.rabbitmq.client.MessageProperties; import com.rabbitmq.client.Method; import com.rabbitmq.client.ShutdownSignalException; -import com.rabbitmq.client.AlreadyClosedException; -import com.rabbitmq.client.impl.ShutdownNotifierComponent; -import com.rabbitmq.client.AMQP; import com.rabbitmq.tools.Host; -import javax.net.ssl.SSLContext; - public class BrokerTestCase extends TestCase { protected ConnectionFactory connectionFactory = newConnectionFactory(); diff --git a/test/src/com/rabbitmq/client/test/Bug20004Test.java b/src/test/java/com/rabbitmq/client/test/Bug20004Test.java similarity index 100% rename from test/src/com/rabbitmq/client/test/Bug20004Test.java rename to src/test/java/com/rabbitmq/client/test/Bug20004Test.java diff --git a/test/src/com/rabbitmq/client/test/ChannelNumberAllocationTests.java b/src/test/java/com/rabbitmq/client/test/ChannelNumberAllocationTests.java similarity index 100% rename from test/src/com/rabbitmq/client/test/ChannelNumberAllocationTests.java rename to src/test/java/com/rabbitmq/client/test/ChannelNumberAllocationTests.java diff --git a/test/src/com/rabbitmq/client/test/ClientTests.java b/src/test/java/com/rabbitmq/client/test/ClientTests.java similarity index 93% rename from test/src/com/rabbitmq/client/test/ClientTests.java rename to src/test/java/com/rabbitmq/client/test/ClientTests.java index 6f3274b8a8..70bdc38d9d 100644 --- a/test/src/com/rabbitmq/client/test/ClientTests.java +++ b/src/test/java/com/rabbitmq/client/test/ClientTests.java @@ -17,11 +17,11 @@ package com.rabbitmq.client.test; -import junit.framework.TestCase; import junit.framework.TestSuite; -public class ClientTests extends TestCase { - public static TestSuite suite() { +public class ClientTests extends AbstractRMQTestSuite { + + public static TestSuite suite() { TestSuite suite = new TestSuite("client"); suite.addTest(TableTest.suite()); suite.addTest(LongStringTest.suite()); diff --git a/test/src/com/rabbitmq/client/test/ClonePropertiesTest.java b/src/test/java/com/rabbitmq/client/test/ClonePropertiesTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/ClonePropertiesTest.java rename to src/test/java/com/rabbitmq/client/test/ClonePropertiesTest.java diff --git a/test/src/com/rabbitmq/client/test/CloseInMainLoop.java b/src/test/java/com/rabbitmq/client/test/CloseInMainLoop.java similarity index 100% rename from test/src/com/rabbitmq/client/test/CloseInMainLoop.java rename to src/test/java/com/rabbitmq/client/test/CloseInMainLoop.java diff --git a/test/src/com/rabbitmq/client/test/ConfirmBase.java b/src/test/java/com/rabbitmq/client/test/ConfirmBase.java similarity index 100% rename from test/src/com/rabbitmq/client/test/ConfirmBase.java rename to src/test/java/com/rabbitmq/client/test/ConfirmBase.java diff --git a/test/src/com/rabbitmq/client/test/JSONReadWriteTest.java b/src/test/java/com/rabbitmq/client/test/JSONReadWriteTest.java similarity index 96% rename from test/src/com/rabbitmq/client/test/JSONReadWriteTest.java rename to src/test/java/com/rabbitmq/client/test/JSONReadWriteTest.java index 8b681bd322..8706c425f2 100644 --- a/test/src/com/rabbitmq/client/test/JSONReadWriteTest.java +++ b/src/test/java/com/rabbitmq/client/test/JSONReadWriteTest.java @@ -17,15 +17,10 @@ package com.rabbitmq.client.test; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; +import junit.framework.TestCase; -import com.rabbitmq.tools.json.JSONWriter; import com.rabbitmq.tools.json.JSONReader; - -import junit.framework.TestCase; +import com.rabbitmq.tools.json.JSONWriter; public class JSONReadWriteTest extends TestCase { diff --git a/test/src/com/rabbitmq/client/test/LongStringTest.java b/src/test/java/com/rabbitmq/client/test/LongStringTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/LongStringTest.java rename to src/test/java/com/rabbitmq/client/test/LongStringTest.java diff --git a/test/src/com/rabbitmq/client/test/MultiThreadedChannel.java b/src/test/java/com/rabbitmq/client/test/MultiThreadedChannel.java similarity index 100% rename from test/src/com/rabbitmq/client/test/MultiThreadedChannel.java rename to src/test/java/com/rabbitmq/client/test/MultiThreadedChannel.java diff --git a/test/src/com/rabbitmq/client/test/QueueingConsumerShutdownTests.java b/src/test/java/com/rabbitmq/client/test/QueueingConsumerShutdownTests.java similarity index 100% rename from test/src/com/rabbitmq/client/test/QueueingConsumerShutdownTests.java rename to src/test/java/com/rabbitmq/client/test/QueueingConsumerShutdownTests.java diff --git a/test/src/com/rabbitmq/client/test/SharedThreadPoolTest.java b/src/test/java/com/rabbitmq/client/test/SharedThreadPoolTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/SharedThreadPoolTest.java rename to src/test/java/com/rabbitmq/client/test/SharedThreadPoolTest.java diff --git a/test/src/com/rabbitmq/client/test/TableTest.java b/src/test/java/com/rabbitmq/client/test/TableTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/TableTest.java rename to src/test/java/com/rabbitmq/client/test/TableTest.java diff --git a/test/src/com/rabbitmq/client/test/TruncatedInputStreamTest.java b/src/test/java/com/rabbitmq/client/test/TruncatedInputStreamTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/TruncatedInputStreamTest.java rename to src/test/java/com/rabbitmq/client/test/TruncatedInputStreamTest.java diff --git a/test/src/com/rabbitmq/client/test/ValueOrExceptionTest.java b/src/test/java/com/rabbitmq/client/test/ValueOrExceptionTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/ValueOrExceptionTest.java rename to src/test/java/com/rabbitmq/client/test/ValueOrExceptionTest.java diff --git a/test/src/com/rabbitmq/client/test/functional/AbstractRejectTest.java b/src/test/java/com/rabbitmq/client/test/functional/AbstractRejectTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/AbstractRejectTest.java rename to src/test/java/com/rabbitmq/client/test/functional/AbstractRejectTest.java diff --git a/test/src/com/rabbitmq/client/test/functional/AlternateExchange.java b/src/test/java/com/rabbitmq/client/test/functional/AlternateExchange.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/AlternateExchange.java rename to src/test/java/com/rabbitmq/client/test/functional/AlternateExchange.java diff --git a/test/src/com/rabbitmq/client/test/functional/BasicGet.java b/src/test/java/com/rabbitmq/client/test/functional/BasicGet.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/BasicGet.java rename to src/test/java/com/rabbitmq/client/test/functional/BasicGet.java diff --git a/test/src/com/rabbitmq/client/test/functional/BindingLifecycle.java b/src/test/java/com/rabbitmq/client/test/functional/BindingLifecycle.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/BindingLifecycle.java rename to src/test/java/com/rabbitmq/client/test/functional/BindingLifecycle.java diff --git a/test/src/com/rabbitmq/client/test/functional/BindingLifecycleBase.java b/src/test/java/com/rabbitmq/client/test/functional/BindingLifecycleBase.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/BindingLifecycleBase.java rename to src/test/java/com/rabbitmq/client/test/functional/BindingLifecycleBase.java diff --git a/test/src/com/rabbitmq/client/test/functional/CcRoutes.java b/src/test/java/com/rabbitmq/client/test/functional/CcRoutes.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/CcRoutes.java rename to src/test/java/com/rabbitmq/client/test/functional/CcRoutes.java diff --git a/test/src/com/rabbitmq/client/test/functional/ClusteredTestBase.java b/src/test/java/com/rabbitmq/client/test/functional/ClusteredTestBase.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ClusteredTestBase.java rename to src/test/java/com/rabbitmq/client/test/functional/ClusteredTestBase.java diff --git a/test/src/com/rabbitmq/client/test/functional/Confirm.java b/src/test/java/com/rabbitmq/client/test/functional/Confirm.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Confirm.java rename to src/test/java/com/rabbitmq/client/test/functional/Confirm.java diff --git a/test/src/com/rabbitmq/client/test/functional/ConnectionOpen.java b/src/test/java/com/rabbitmq/client/test/functional/ConnectionOpen.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ConnectionOpen.java rename to src/test/java/com/rabbitmq/client/test/functional/ConnectionOpen.java diff --git a/test/src/com/rabbitmq/client/test/functional/ConnectionRecovery.java b/src/test/java/com/rabbitmq/client/test/functional/ConnectionRecovery.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ConnectionRecovery.java rename to src/test/java/com/rabbitmq/client/test/functional/ConnectionRecovery.java diff --git a/test/src/com/rabbitmq/client/test/functional/ConsumerCancelNotification.java b/src/test/java/com/rabbitmq/client/test/functional/ConsumerCancelNotification.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ConsumerCancelNotification.java rename to src/test/java/com/rabbitmq/client/test/functional/ConsumerCancelNotification.java diff --git a/test/src/com/rabbitmq/client/test/functional/ConsumerCount.java b/src/test/java/com/rabbitmq/client/test/functional/ConsumerCount.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ConsumerCount.java rename to src/test/java/com/rabbitmq/client/test/functional/ConsumerCount.java diff --git a/test/src/com/rabbitmq/client/test/functional/ConsumerPriorities.java b/src/test/java/com/rabbitmq/client/test/functional/ConsumerPriorities.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ConsumerPriorities.java rename to src/test/java/com/rabbitmq/client/test/functional/ConsumerPriorities.java diff --git a/test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java b/src/test/java/com/rabbitmq/client/test/functional/DeadLetterExchange.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java rename to src/test/java/com/rabbitmq/client/test/functional/DeadLetterExchange.java diff --git a/test/src/com/rabbitmq/client/test/functional/DefaultExchange.java b/src/test/java/com/rabbitmq/client/test/functional/DefaultExchange.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/DefaultExchange.java rename to src/test/java/com/rabbitmq/client/test/functional/DefaultExchange.java diff --git a/test/src/com/rabbitmq/client/test/functional/DirectReplyTo.java b/src/test/java/com/rabbitmq/client/test/functional/DirectReplyTo.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/DirectReplyTo.java rename to src/test/java/com/rabbitmq/client/test/functional/DirectReplyTo.java diff --git a/test/src/com/rabbitmq/client/test/functional/DoubleDeletion.java b/src/test/java/com/rabbitmq/client/test/functional/DoubleDeletion.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/DoubleDeletion.java rename to src/test/java/com/rabbitmq/client/test/functional/DoubleDeletion.java diff --git a/test/src/com/rabbitmq/client/test/functional/DurableOnTransient.java b/src/test/java/com/rabbitmq/client/test/functional/DurableOnTransient.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/DurableOnTransient.java rename to src/test/java/com/rabbitmq/client/test/functional/DurableOnTransient.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExceptionHandling.java b/src/test/java/com/rabbitmq/client/test/functional/ExceptionHandling.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExceptionHandling.java rename to src/test/java/com/rabbitmq/client/test/functional/ExceptionHandling.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExceptionMessages.java b/src/test/java/com/rabbitmq/client/test/functional/ExceptionMessages.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExceptionMessages.java rename to src/test/java/com/rabbitmq/client/test/functional/ExceptionMessages.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExchangeDeclare.java b/src/test/java/com/rabbitmq/client/test/functional/ExchangeDeclare.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExchangeDeclare.java rename to src/test/java/com/rabbitmq/client/test/functional/ExchangeDeclare.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExchangeDeleteIfUnused.java b/src/test/java/com/rabbitmq/client/test/functional/ExchangeDeleteIfUnused.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExchangeDeleteIfUnused.java rename to src/test/java/com/rabbitmq/client/test/functional/ExchangeDeleteIfUnused.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExchangeDeletePredeclared.java b/src/test/java/com/rabbitmq/client/test/functional/ExchangeDeletePredeclared.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExchangeDeletePredeclared.java rename to src/test/java/com/rabbitmq/client/test/functional/ExchangeDeletePredeclared.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExchangeEquivalenceBase.java b/src/test/java/com/rabbitmq/client/test/functional/ExchangeEquivalenceBase.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExchangeEquivalenceBase.java rename to src/test/java/com/rabbitmq/client/test/functional/ExchangeEquivalenceBase.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExchangeExchangeBindings.java b/src/test/java/com/rabbitmq/client/test/functional/ExchangeExchangeBindings.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExchangeExchangeBindings.java rename to src/test/java/com/rabbitmq/client/test/functional/ExchangeExchangeBindings.java diff --git a/test/src/com/rabbitmq/client/test/functional/ExchangeExchangeBindingsAutoDelete.java b/src/test/java/com/rabbitmq/client/test/functional/ExchangeExchangeBindingsAutoDelete.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/ExchangeExchangeBindingsAutoDelete.java rename to src/test/java/com/rabbitmq/client/test/functional/ExchangeExchangeBindingsAutoDelete.java diff --git a/test/src/com/rabbitmq/client/test/functional/FrameMax.java b/src/test/java/com/rabbitmq/client/test/functional/FrameMax.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/FrameMax.java rename to src/test/java/com/rabbitmq/client/test/functional/FrameMax.java diff --git a/test/src/com/rabbitmq/client/test/functional/FunctionalTests.java b/src/test/java/com/rabbitmq/client/test/functional/FunctionalTests.java similarity index 96% rename from test/src/com/rabbitmq/client/test/functional/FunctionalTests.java rename to src/test/java/com/rabbitmq/client/test/functional/FunctionalTests.java index ab1a3b9303..ce2a830cc6 100644 --- a/test/src/com/rabbitmq/client/test/functional/FunctionalTests.java +++ b/src/test/java/com/rabbitmq/client/test/functional/FunctionalTests.java @@ -18,12 +18,13 @@ package com.rabbitmq.client.test.functional; import com.rabbitmq.client.impl.WorkPoolTests; +import com.rabbitmq.client.test.AbstractRMQTestSuite; import com.rabbitmq.client.test.Bug20004Test; import junit.framework.TestCase; import junit.framework.TestSuite; -public class FunctionalTests extends TestCase { +public class FunctionalTests extends AbstractRMQTestSuite { public static TestSuite suite() { TestSuite suite = new TestSuite("functional"); add(suite); diff --git a/test/src/com/rabbitmq/client/test/functional/HeadersExchangeValidation.java b/src/test/java/com/rabbitmq/client/test/functional/HeadersExchangeValidation.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/HeadersExchangeValidation.java rename to src/test/java/com/rabbitmq/client/test/functional/HeadersExchangeValidation.java diff --git a/test/src/com/rabbitmq/client/test/functional/Heartbeat.java b/src/test/java/com/rabbitmq/client/test/functional/Heartbeat.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Heartbeat.java rename to src/test/java/com/rabbitmq/client/test/functional/Heartbeat.java diff --git a/test/src/com/rabbitmq/client/test/functional/InternalExchange.java b/src/test/java/com/rabbitmq/client/test/functional/InternalExchange.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/InternalExchange.java rename to src/test/java/com/rabbitmq/client/test/functional/InternalExchange.java diff --git a/test/src/com/rabbitmq/client/test/functional/InvalidAcks.java b/src/test/java/com/rabbitmq/client/test/functional/InvalidAcks.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/InvalidAcks.java rename to src/test/java/com/rabbitmq/client/test/functional/InvalidAcks.java diff --git a/test/src/com/rabbitmq/client/test/functional/InvalidAcksBase.java b/src/test/java/com/rabbitmq/client/test/functional/InvalidAcksBase.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/InvalidAcksBase.java rename to src/test/java/com/rabbitmq/client/test/functional/InvalidAcksBase.java diff --git a/test/src/com/rabbitmq/client/test/functional/InvalidAcksTx.java b/src/test/java/com/rabbitmq/client/test/functional/InvalidAcksTx.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/InvalidAcksTx.java rename to src/test/java/com/rabbitmq/client/test/functional/InvalidAcksTx.java diff --git a/test/src/com/rabbitmq/client/test/functional/MessageCount.java b/src/test/java/com/rabbitmq/client/test/functional/MessageCount.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/MessageCount.java rename to src/test/java/com/rabbitmq/client/test/functional/MessageCount.java diff --git a/test/src/com/rabbitmq/client/test/functional/Nack.java b/src/test/java/com/rabbitmq/client/test/functional/Nack.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Nack.java rename to src/test/java/com/rabbitmq/client/test/functional/Nack.java diff --git a/test/src/com/rabbitmq/client/test/functional/NoRequeueOnCancel.java b/src/test/java/com/rabbitmq/client/test/functional/NoRequeueOnCancel.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/NoRequeueOnCancel.java rename to src/test/java/com/rabbitmq/client/test/functional/NoRequeueOnCancel.java diff --git a/test/src/com/rabbitmq/client/test/functional/Nowait.java b/src/test/java/com/rabbitmq/client/test/functional/Nowait.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Nowait.java rename to src/test/java/com/rabbitmq/client/test/functional/Nowait.java diff --git a/test/src/com/rabbitmq/client/test/functional/PerConsumerPrefetch.java b/src/test/java/com/rabbitmq/client/test/functional/PerConsumerPrefetch.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/PerConsumerPrefetch.java rename to src/test/java/com/rabbitmq/client/test/functional/PerConsumerPrefetch.java diff --git a/test/src/com/rabbitmq/client/test/functional/PerMessageTTL.java b/src/test/java/com/rabbitmq/client/test/functional/PerMessageTTL.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/PerMessageTTL.java rename to src/test/java/com/rabbitmq/client/test/functional/PerMessageTTL.java diff --git a/test/src/com/rabbitmq/client/test/functional/PerQueueTTL.java b/src/test/java/com/rabbitmq/client/test/functional/PerQueueTTL.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/PerQueueTTL.java rename to src/test/java/com/rabbitmq/client/test/functional/PerQueueTTL.java diff --git a/test/src/com/rabbitmq/client/test/functional/PerQueueVsPerMessageTTL.java b/src/test/java/com/rabbitmq/client/test/functional/PerQueueVsPerMessageTTL.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/PerQueueVsPerMessageTTL.java rename to src/test/java/com/rabbitmq/client/test/functional/PerQueueVsPerMessageTTL.java diff --git a/test/src/com/rabbitmq/client/test/functional/Policies.java b/src/test/java/com/rabbitmq/client/test/functional/Policies.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Policies.java rename to src/test/java/com/rabbitmq/client/test/functional/Policies.java diff --git a/test/src/com/rabbitmq/client/test/functional/QosTests.java b/src/test/java/com/rabbitmq/client/test/functional/QosTests.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/QosTests.java rename to src/test/java/com/rabbitmq/client/test/functional/QosTests.java diff --git a/test/src/com/rabbitmq/client/test/functional/QueueExclusivity.java b/src/test/java/com/rabbitmq/client/test/functional/QueueExclusivity.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/QueueExclusivity.java rename to src/test/java/com/rabbitmq/client/test/functional/QueueExclusivity.java diff --git a/test/src/com/rabbitmq/client/test/functional/QueueLease.java b/src/test/java/com/rabbitmq/client/test/functional/QueueLease.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/QueueLease.java rename to src/test/java/com/rabbitmq/client/test/functional/QueueLease.java diff --git a/test/src/com/rabbitmq/client/test/functional/QueueLifecycle.java b/src/test/java/com/rabbitmq/client/test/functional/QueueLifecycle.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/QueueLifecycle.java rename to src/test/java/com/rabbitmq/client/test/functional/QueueLifecycle.java diff --git a/test/src/com/rabbitmq/client/test/functional/QueueSizeLimit.java b/src/test/java/com/rabbitmq/client/test/functional/QueueSizeLimit.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/QueueSizeLimit.java rename to src/test/java/com/rabbitmq/client/test/functional/QueueSizeLimit.java diff --git a/test/src/com/rabbitmq/client/test/functional/Recover.java b/src/test/java/com/rabbitmq/client/test/functional/Recover.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Recover.java rename to src/test/java/com/rabbitmq/client/test/functional/Recover.java diff --git a/test/src/com/rabbitmq/client/test/functional/Reject.java b/src/test/java/com/rabbitmq/client/test/functional/Reject.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Reject.java rename to src/test/java/com/rabbitmq/client/test/functional/Reject.java diff --git a/test/src/com/rabbitmq/client/test/functional/RequeueOnChannelClose.java b/src/test/java/com/rabbitmq/client/test/functional/RequeueOnChannelClose.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/RequeueOnChannelClose.java rename to src/test/java/com/rabbitmq/client/test/functional/RequeueOnChannelClose.java diff --git a/test/src/com/rabbitmq/client/test/functional/RequeueOnClose.java b/src/test/java/com/rabbitmq/client/test/functional/RequeueOnClose.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/RequeueOnClose.java rename to src/test/java/com/rabbitmq/client/test/functional/RequeueOnClose.java diff --git a/test/src/com/rabbitmq/client/test/functional/RequeueOnConnectionClose.java b/src/test/java/com/rabbitmq/client/test/functional/RequeueOnConnectionClose.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/RequeueOnConnectionClose.java rename to src/test/java/com/rabbitmq/client/test/functional/RequeueOnConnectionClose.java diff --git a/test/src/com/rabbitmq/client/test/functional/Routing.java b/src/test/java/com/rabbitmq/client/test/functional/Routing.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Routing.java rename to src/test/java/com/rabbitmq/client/test/functional/Routing.java diff --git a/test/src/com/rabbitmq/client/test/functional/SaslMechanisms.java b/src/test/java/com/rabbitmq/client/test/functional/SaslMechanisms.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/SaslMechanisms.java rename to src/test/java/com/rabbitmq/client/test/functional/SaslMechanisms.java diff --git a/test/src/com/rabbitmq/client/test/functional/TTLHandling.java b/src/test/java/com/rabbitmq/client/test/functional/TTLHandling.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/TTLHandling.java rename to src/test/java/com/rabbitmq/client/test/functional/TTLHandling.java diff --git a/test/src/com/rabbitmq/client/test/functional/Tables.java b/src/test/java/com/rabbitmq/client/test/functional/Tables.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Tables.java rename to src/test/java/com/rabbitmq/client/test/functional/Tables.java diff --git a/test/src/com/rabbitmq/client/test/functional/Transactions.java b/src/test/java/com/rabbitmq/client/test/functional/Transactions.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/Transactions.java rename to src/test/java/com/rabbitmq/client/test/functional/Transactions.java diff --git a/test/src/com/rabbitmq/client/test/functional/UnbindAutoDeleteExchange.java b/src/test/java/com/rabbitmq/client/test/functional/UnbindAutoDeleteExchange.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/UnbindAutoDeleteExchange.java rename to src/test/java/com/rabbitmq/client/test/functional/UnbindAutoDeleteExchange.java diff --git a/test/src/com/rabbitmq/client/test/functional/UnexpectedFrames.java b/src/test/java/com/rabbitmq/client/test/functional/UnexpectedFrames.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/UnexpectedFrames.java rename to src/test/java/com/rabbitmq/client/test/functional/UnexpectedFrames.java diff --git a/test/src/com/rabbitmq/client/test/functional/UserIDHeader.java b/src/test/java/com/rabbitmq/client/test/functional/UserIDHeader.java similarity index 100% rename from test/src/com/rabbitmq/client/test/functional/UserIDHeader.java rename to src/test/java/com/rabbitmq/client/test/functional/UserIDHeader.java diff --git a/test/src/com/rabbitmq/client/test/performance/CLIHelper.java b/src/test/java/com/rabbitmq/client/test/performance/CLIHelper.java similarity index 100% rename from test/src/com/rabbitmq/client/test/performance/CLIHelper.java rename to src/test/java/com/rabbitmq/client/test/performance/CLIHelper.java diff --git a/test/src/com/rabbitmq/client/test/performance/QosScaling.java b/src/test/java/com/rabbitmq/client/test/performance/QosScaling.java similarity index 100% rename from test/src/com/rabbitmq/client/test/performance/QosScaling.java rename to src/test/java/com/rabbitmq/client/test/performance/QosScaling.java diff --git a/test/src/com/rabbitmq/client/test/performance/ScalabilityTest.java b/src/test/java/com/rabbitmq/client/test/performance/ScalabilityTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/performance/ScalabilityTest.java rename to src/test/java/com/rabbitmq/client/test/performance/ScalabilityTest.java diff --git a/test/src/com/rabbitmq/client/test/performance/StressManagement.java b/src/test/java/com/rabbitmq/client/test/performance/StressManagement.java similarity index 100% rename from test/src/com/rabbitmq/client/test/performance/StressManagement.java rename to src/test/java/com/rabbitmq/client/test/performance/StressManagement.java diff --git a/test/src/com/rabbitmq/client/test/server/AbsentQueue.java b/src/test/java/com/rabbitmq/client/test/server/AbsentQueue.java similarity index 99% rename from test/src/com/rabbitmq/client/test/server/AbsentQueue.java rename to src/test/java/com/rabbitmq/client/test/server/AbsentQueue.java index d62d5acb2b..167619ccc7 100644 --- a/test/src/com/rabbitmq/client/test/server/AbsentQueue.java +++ b/src/test/java/com/rabbitmq/client/test/server/AbsentQueue.java @@ -17,13 +17,12 @@ package com.rabbitmq.client.test.server; -import com.rabbitmq.client.AMQP; -import com.rabbitmq.client.test.functional.ClusteredTestBase; -import com.rabbitmq.tools.Host; - import java.io.IOException; import java.util.concurrent.TimeoutException; +import com.rabbitmq.client.AMQP; +import com.rabbitmq.client.test.functional.ClusteredTestBase; + /** * This tests whether 'absent' queues - durable queues whose home node * is down - are handled properly. diff --git a/test/src/com/rabbitmq/client/test/server/AlternateExchangeEquivalence.java b/src/test/java/com/rabbitmq/client/test/server/AlternateExchangeEquivalence.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/AlternateExchangeEquivalence.java rename to src/test/java/com/rabbitmq/client/test/server/AlternateExchangeEquivalence.java diff --git a/test/src/com/rabbitmq/client/test/server/BlockedConnection.java b/src/test/java/com/rabbitmq/client/test/server/BlockedConnection.java similarity index 98% rename from test/src/com/rabbitmq/client/test/server/BlockedConnection.java rename to src/test/java/com/rabbitmq/client/test/server/BlockedConnection.java index 23239725fa..cdea5a164c 100644 --- a/test/src/com/rabbitmq/client/test/server/BlockedConnection.java +++ b/src/test/java/com/rabbitmq/client/test/server/BlockedConnection.java @@ -17,18 +17,17 @@ package com.rabbitmq.client.test.server; +import java.io.IOException; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + import com.rabbitmq.client.BlockedListener; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.MessageProperties; import com.rabbitmq.client.test.BrokerTestCase; -import com.rabbitmq.tools.Host; - -import java.io.IOException; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; public class BlockedConnection extends BrokerTestCase { protected void releaseResources() throws IOException { diff --git a/test/src/com/rabbitmq/client/test/server/Bug19219Test.java b/src/test/java/com/rabbitmq/client/test/server/Bug19219Test.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/Bug19219Test.java rename to src/test/java/com/rabbitmq/client/test/server/Bug19219Test.java diff --git a/test/src/com/rabbitmq/client/test/server/ChannelLimitNegotiation.java b/src/test/java/com/rabbitmq/client/test/server/ChannelLimitNegotiation.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/ChannelLimitNegotiation.java rename to src/test/java/com/rabbitmq/client/test/server/ChannelLimitNegotiation.java diff --git a/test/src/com/rabbitmq/client/test/server/DeadLetterExchangeDurable.java b/src/test/java/com/rabbitmq/client/test/server/DeadLetterExchangeDurable.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/DeadLetterExchangeDurable.java rename to src/test/java/com/rabbitmq/client/test/server/DeadLetterExchangeDurable.java diff --git a/test/src/com/rabbitmq/client/test/server/DurableBindingLifecycle.java b/src/test/java/com/rabbitmq/client/test/server/DurableBindingLifecycle.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/DurableBindingLifecycle.java rename to src/test/java/com/rabbitmq/client/test/server/DurableBindingLifecycle.java diff --git a/test/src/com/rabbitmq/client/test/server/EffectVisibilityCrossNodeTest.java b/src/test/java/com/rabbitmq/client/test/server/EffectVisibilityCrossNodeTest.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/EffectVisibilityCrossNodeTest.java rename to src/test/java/com/rabbitmq/client/test/server/EffectVisibilityCrossNodeTest.java diff --git a/test/src/com/rabbitmq/client/test/server/ExclusiveQueueDurability.java b/src/test/java/com/rabbitmq/client/test/server/ExclusiveQueueDurability.java similarity index 98% rename from test/src/com/rabbitmq/client/test/server/ExclusiveQueueDurability.java rename to src/test/java/com/rabbitmq/client/test/server/ExclusiveQueueDurability.java index d6108c5db5..6dd6c23981 100644 --- a/test/src/com/rabbitmq/client/test/server/ExclusiveQueueDurability.java +++ b/src/test/java/com/rabbitmq/client/test/server/ExclusiveQueueDurability.java @@ -23,7 +23,6 @@ import com.rabbitmq.client.AMQP; import com.rabbitmq.client.Channel; import com.rabbitmq.client.test.BrokerTestCase; -import com.rabbitmq.tools.Host; /** * This tests whether exclusive, durable queues are deleted when appropriate diff --git a/test/src/com/rabbitmq/client/test/server/Firehose.java b/src/test/java/com/rabbitmq/client/test/server/Firehose.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/Firehose.java rename to src/test/java/com/rabbitmq/client/test/server/Firehose.java diff --git a/test/src/com/rabbitmq/client/test/server/HATests.java b/src/test/java/com/rabbitmq/client/test/server/HATests.java similarity index 92% rename from test/src/com/rabbitmq/client/test/server/HATests.java rename to src/test/java/com/rabbitmq/client/test/server/HATests.java index 3a2f7ea038..9f06660916 100644 --- a/test/src/com/rabbitmq/client/test/server/HATests.java +++ b/src/test/java/com/rabbitmq/client/test/server/HATests.java @@ -16,17 +16,20 @@ package com.rabbitmq.client.test.server; -import com.rabbitmq.client.test.functional.FunctionalTests; -import com.rabbitmq.tools.Host; import junit.framework.TestCase; import junit.framework.TestSuite; -public class HATests extends TestSuite { +import com.rabbitmq.client.test.AbstractRMQTestSuite; +import com.rabbitmq.client.test.functional.FunctionalTests; +import com.rabbitmq.tools.Host; + +public class HATests extends AbstractRMQTestSuite { // this is horrific public static boolean HA_TESTS_RUNNING = false; - + public static TestSuite suite() { TestSuite suite = new TestSuite("server-tests"); + if(!isUnderUmbrella()) return suite; suite.addTestSuite(SetUp.class); FunctionalTests.add(suite); ServerTests.add(suite); diff --git a/test/src/com/rabbitmq/client/test/server/LoopbackUsers.java b/src/test/java/com/rabbitmq/client/test/server/LoopbackUsers.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/LoopbackUsers.java rename to src/test/java/com/rabbitmq/client/test/server/LoopbackUsers.java diff --git a/test/src/com/rabbitmq/client/test/server/MemoryAlarms.java b/src/test/java/com/rabbitmq/client/test/server/MemoryAlarms.java similarity index 99% rename from test/src/com/rabbitmq/client/test/server/MemoryAlarms.java rename to src/test/java/com/rabbitmq/client/test/server/MemoryAlarms.java index 12dd19a424..25888fb265 100644 --- a/test/src/com/rabbitmq/client/test/server/MemoryAlarms.java +++ b/src/test/java/com/rabbitmq/client/test/server/MemoryAlarms.java @@ -23,7 +23,6 @@ import com.rabbitmq.client.Connection; import com.rabbitmq.client.QueueingConsumer; import com.rabbitmq.client.test.BrokerTestCase; -import com.rabbitmq.tools.Host; public class MemoryAlarms extends BrokerTestCase { diff --git a/test/src/com/rabbitmq/client/test/server/MessageRecovery.java b/src/test/java/com/rabbitmq/client/test/server/MessageRecovery.java similarity index 98% rename from test/src/com/rabbitmq/client/test/server/MessageRecovery.java rename to src/test/java/com/rabbitmq/client/test/server/MessageRecovery.java index 45c33c242c..6a67a218c3 100644 --- a/test/src/com/rabbitmq/client/test/server/MessageRecovery.java +++ b/src/test/java/com/rabbitmq/client/test/server/MessageRecovery.java @@ -15,13 +15,12 @@ package com.rabbitmq.client.test.server; +import java.io.IOException; + import com.rabbitmq.client.AMQP; -import com.rabbitmq.client.Channel; import com.rabbitmq.client.MessageProperties; import com.rabbitmq.client.test.ConfirmBase; -import java.io.IOException; - public class MessageRecovery extends ConfirmBase { diff --git a/test/src/com/rabbitmq/client/test/server/Permissions.java b/src/test/java/com/rabbitmq/client/test/server/Permissions.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/Permissions.java rename to src/test/java/com/rabbitmq/client/test/server/Permissions.java diff --git a/test/src/com/rabbitmq/client/test/server/PersistenceGuarantees.java b/src/test/java/com/rabbitmq/client/test/server/PersistenceGuarantees.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/PersistenceGuarantees.java rename to src/test/java/com/rabbitmq/client/test/server/PersistenceGuarantees.java diff --git a/src/test/java/com/rabbitmq/client/test/server/ServerTests.java b/src/test/java/com/rabbitmq/client/test/server/ServerTests.java new file mode 100644 index 0000000000..62bc07c71f --- /dev/null +++ b/src/test/java/com/rabbitmq/client/test/server/ServerTests.java @@ -0,0 +1,48 @@ +// The contents of this file are subject to the Mozilla Public License +// Version 1.1 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License +// at http://www.mozilla.org/MPL/ +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +// the License for the specific language governing rights and +// limitations under the License. +// +// The Original Code is RabbitMQ. +// +// The Initial Developer of the Original Code is GoPivotal, Inc. +// Copyright (c) 2007-2015 Pivotal Software, Inc. All rights reserved. +// + +package com.rabbitmq.client.test.server; + +import junit.framework.TestSuite; + +import com.rabbitmq.client.test.AbstractRMQTestSuite; + +public class ServerTests extends AbstractRMQTestSuite { + public static TestSuite suite() { + TestSuite suite = new TestSuite("server-tests"); + if(!isUnderUmbrella()) return suite; + add(suite); + return suite; + } + + public static void add(TestSuite suite) { + suite.addTestSuite(Permissions.class); + suite.addTestSuite(DurableBindingLifecycle.class); + suite.addTestSuite(DeadLetterExchangeDurable.class); + suite.addTestSuite(EffectVisibilityCrossNodeTest.class); + suite.addTestSuite(ExclusiveQueueDurability.class); + suite.addTestSuite(AbsentQueue.class); + suite.addTestSuite(AlternateExchangeEquivalence.class); + suite.addTestSuite(MemoryAlarms.class); + suite.addTestSuite(MessageRecovery.class); + suite.addTestSuite(Firehose.class); + suite.addTestSuite(PersistenceGuarantees.class); + suite.addTestSuite(Shutdown.class); + suite.addTestSuite(BlockedConnection.class); + suite.addTestSuite(ChannelLimitNegotiation.class); + suite.addTestSuite(LoopbackUsers.class); + } +} diff --git a/test/src/com/rabbitmq/client/test/server/Shutdown.java b/src/test/java/com/rabbitmq/client/test/server/Shutdown.java similarity index 74% rename from test/src/com/rabbitmq/client/test/server/Shutdown.java rename to src/test/java/com/rabbitmq/client/test/server/Shutdown.java index 7280eb8be8..e077ce0394 100644 --- a/test/src/com/rabbitmq/client/test/server/Shutdown.java +++ b/src/test/java/com/rabbitmq/client/test/server/Shutdown.java @@ -1,11 +1,7 @@ package com.rabbitmq.client.test.server; -import com.rabbitmq.client.test.BrokerTestCase; import com.rabbitmq.client.AMQP; -import com.rabbitmq.client.Channel; -import com.rabbitmq.client.Connection; - -import java.io.IOException; +import com.rabbitmq.client.test.BrokerTestCase; public class Shutdown extends BrokerTestCase { diff --git a/test/src/com/rabbitmq/client/test/server/XDeathHeaderGrowth.java b/src/test/java/com/rabbitmq/client/test/server/XDeathHeaderGrowth.java similarity index 100% rename from test/src/com/rabbitmq/client/test/server/XDeathHeaderGrowth.java rename to src/test/java/com/rabbitmq/client/test/server/XDeathHeaderGrowth.java diff --git a/test/src/com/rabbitmq/client/test/ssl/BadVerifiedConnection.java b/src/test/java/com/rabbitmq/client/test/ssl/BadVerifiedConnection.java similarity index 100% rename from test/src/com/rabbitmq/client/test/ssl/BadVerifiedConnection.java rename to src/test/java/com/rabbitmq/client/test/ssl/BadVerifiedConnection.java diff --git a/test/src/com/rabbitmq/client/test/ssl/SSLTests.java b/src/test/java/com/rabbitmq/client/test/ssl/SSLTests.java similarity index 80% rename from test/src/com/rabbitmq/client/test/ssl/SSLTests.java rename to src/test/java/com/rabbitmq/client/test/ssl/SSLTests.java index 4263bd241c..1faa0ce3dc 100644 --- a/test/src/com/rabbitmq/client/test/ssl/SSLTests.java +++ b/src/test/java/com/rabbitmq/client/test/ssl/SSLTests.java @@ -17,12 +17,15 @@ package com.rabbitmq.client.test.ssl; -import junit.framework.TestCase; import junit.framework.TestSuite; -public class SSLTests extends TestCase { +import com.rabbitmq.client.test.AbstractRMQTestSuite; + +public class SSLTests extends AbstractRMQTestSuite { public static TestSuite suite() { TestSuite suite = new TestSuite("ssl"); + //Skip the tests if not under umbrella and not SSL available + if(!(isUnderUmbrella() && isSSlAvailable())) return suite; suite.addTestSuite(UnverifiedConnection.class); suite.addTestSuite(VerifiedConnection.class); suite.addTestSuite(BadVerifiedConnection.class); diff --git a/test/src/com/rabbitmq/client/test/ssl/UnverifiedConnection.java b/src/test/java/com/rabbitmq/client/test/ssl/UnverifiedConnection.java similarity index 100% rename from test/src/com/rabbitmq/client/test/ssl/UnverifiedConnection.java rename to src/test/java/com/rabbitmq/client/test/ssl/UnverifiedConnection.java diff --git a/test/src/com/rabbitmq/client/test/ssl/VerifiedConnection.java b/src/test/java/com/rabbitmq/client/test/ssl/VerifiedConnection.java similarity index 100% rename from test/src/com/rabbitmq/client/test/ssl/VerifiedConnection.java rename to src/test/java/com/rabbitmq/client/test/ssl/VerifiedConnection.java diff --git a/test/src/com/rabbitmq/examples/BufferPerformanceMetrics.java b/src/test/java/com/rabbitmq/examples/BufferPerformanceMetrics.java similarity index 100% rename from test/src/com/rabbitmq/examples/BufferPerformanceMetrics.java rename to src/test/java/com/rabbitmq/examples/BufferPerformanceMetrics.java diff --git a/test/src/com/rabbitmq/examples/ChannelCreationPerformance.java b/src/test/java/com/rabbitmq/examples/ChannelCreationPerformance.java similarity index 100% rename from test/src/com/rabbitmq/examples/ChannelCreationPerformance.java rename to src/test/java/com/rabbitmq/examples/ChannelCreationPerformance.java diff --git a/test/src/com/rabbitmq/examples/ConfirmDontLoseMessages.java b/src/test/java/com/rabbitmq/examples/ConfirmDontLoseMessages.java similarity index 100% rename from test/src/com/rabbitmq/examples/ConfirmDontLoseMessages.java rename to src/test/java/com/rabbitmq/examples/ConfirmDontLoseMessages.java diff --git a/test/src/com/rabbitmq/examples/ConsumerMain.java b/src/test/java/com/rabbitmq/examples/ConsumerMain.java similarity index 100% rename from test/src/com/rabbitmq/examples/ConsumerMain.java rename to src/test/java/com/rabbitmq/examples/ConsumerMain.java diff --git a/test/src/com/rabbitmq/examples/DirectReplyToPerformance.java b/src/test/java/com/rabbitmq/examples/DirectReplyToPerformance.java similarity index 100% rename from test/src/com/rabbitmq/examples/DirectReplyToPerformance.java rename to src/test/java/com/rabbitmq/examples/DirectReplyToPerformance.java diff --git a/test/src/com/rabbitmq/examples/FileConsumer.java b/src/test/java/com/rabbitmq/examples/FileConsumer.java similarity index 100% rename from test/src/com/rabbitmq/examples/FileConsumer.java rename to src/test/java/com/rabbitmq/examples/FileConsumer.java diff --git a/test/src/com/rabbitmq/examples/FileProducer.java b/src/test/java/com/rabbitmq/examples/FileProducer.java similarity index 100% rename from test/src/com/rabbitmq/examples/FileProducer.java rename to src/test/java/com/rabbitmq/examples/FileProducer.java diff --git a/test/src/com/rabbitmq/examples/HelloClient.java b/src/test/java/com/rabbitmq/examples/HelloClient.java similarity index 100% rename from test/src/com/rabbitmq/examples/HelloClient.java rename to src/test/java/com/rabbitmq/examples/HelloClient.java diff --git a/test/src/com/rabbitmq/examples/HelloJsonClient.java b/src/test/java/com/rabbitmq/examples/HelloJsonClient.java similarity index 100% rename from test/src/com/rabbitmq/examples/HelloJsonClient.java rename to src/test/java/com/rabbitmq/examples/HelloJsonClient.java diff --git a/test/src/com/rabbitmq/examples/HelloJsonServer.java b/src/test/java/com/rabbitmq/examples/HelloJsonServer.java similarity index 100% rename from test/src/com/rabbitmq/examples/HelloJsonServer.java rename to src/test/java/com/rabbitmq/examples/HelloJsonServer.java diff --git a/test/src/com/rabbitmq/examples/HelloJsonService.java b/src/test/java/com/rabbitmq/examples/HelloJsonService.java similarity index 100% rename from test/src/com/rabbitmq/examples/HelloJsonService.java rename to src/test/java/com/rabbitmq/examples/HelloJsonService.java diff --git a/test/src/com/rabbitmq/examples/HelloServer.java b/src/test/java/com/rabbitmq/examples/HelloServer.java similarity index 100% rename from test/src/com/rabbitmq/examples/HelloServer.java rename to src/test/java/com/rabbitmq/examples/HelloServer.java diff --git a/test/src/com/rabbitmq/examples/LogTail.java b/src/test/java/com/rabbitmq/examples/LogTail.java similarity index 100% rename from test/src/com/rabbitmq/examples/LogTail.java rename to src/test/java/com/rabbitmq/examples/LogTail.java diff --git a/test/src/com/rabbitmq/examples/MulticastMain.java b/src/test/java/com/rabbitmq/examples/MulticastMain.java similarity index 100% rename from test/src/com/rabbitmq/examples/MulticastMain.java rename to src/test/java/com/rabbitmq/examples/MulticastMain.java diff --git a/test/src/com/rabbitmq/examples/PerQueueTTLGetter.java b/src/test/java/com/rabbitmq/examples/PerQueueTTLGetter.java similarity index 100% rename from test/src/com/rabbitmq/examples/PerQueueTTLGetter.java rename to src/test/java/com/rabbitmq/examples/PerQueueTTLGetter.java diff --git a/test/src/com/rabbitmq/examples/PerQueueTTLPublisher.java b/src/test/java/com/rabbitmq/examples/PerQueueTTLPublisher.java similarity index 100% rename from test/src/com/rabbitmq/examples/PerQueueTTLPublisher.java rename to src/test/java/com/rabbitmq/examples/PerQueueTTLPublisher.java diff --git a/test/src/com/rabbitmq/examples/PerfTest.java b/src/test/java/com/rabbitmq/examples/PerfTest.java similarity index 100% rename from test/src/com/rabbitmq/examples/PerfTest.java rename to src/test/java/com/rabbitmq/examples/PerfTest.java diff --git a/test/src/com/rabbitmq/examples/PerfTestMulti.java b/src/test/java/com/rabbitmq/examples/PerfTestMulti.java similarity index 100% rename from test/src/com/rabbitmq/examples/PerfTestMulti.java rename to src/test/java/com/rabbitmq/examples/PerfTestMulti.java diff --git a/test/src/com/rabbitmq/examples/ProducerMain.java b/src/test/java/com/rabbitmq/examples/ProducerMain.java similarity index 100% rename from test/src/com/rabbitmq/examples/ProducerMain.java rename to src/test/java/com/rabbitmq/examples/ProducerMain.java diff --git a/test/src/com/rabbitmq/examples/SendString.java b/src/test/java/com/rabbitmq/examples/SendString.java similarity index 100% rename from test/src/com/rabbitmq/examples/SendString.java rename to src/test/java/com/rabbitmq/examples/SendString.java diff --git a/test/src/com/rabbitmq/examples/SimpleConsumer.java b/src/test/java/com/rabbitmq/examples/SimpleConsumer.java similarity index 100% rename from test/src/com/rabbitmq/examples/SimpleConsumer.java rename to src/test/java/com/rabbitmq/examples/SimpleConsumer.java diff --git a/test/src/com/rabbitmq/examples/SimpleProducer.java b/src/test/java/com/rabbitmq/examples/SimpleProducer.java similarity index 100% rename from test/src/com/rabbitmq/examples/SimpleProducer.java rename to src/test/java/com/rabbitmq/examples/SimpleProducer.java diff --git a/test/src/com/rabbitmq/examples/SimpleTopicConsumer.java b/src/test/java/com/rabbitmq/examples/SimpleTopicConsumer.java similarity index 100% rename from test/src/com/rabbitmq/examples/SimpleTopicConsumer.java rename to src/test/java/com/rabbitmq/examples/SimpleTopicConsumer.java diff --git a/test/src/com/rabbitmq/examples/SimpleTopicProducer.java b/src/test/java/com/rabbitmq/examples/SimpleTopicProducer.java similarity index 100% rename from test/src/com/rabbitmq/examples/SimpleTopicProducer.java rename to src/test/java/com/rabbitmq/examples/SimpleTopicProducer.java diff --git a/test/src/com/rabbitmq/examples/SpammyTopicProducer.java b/src/test/java/com/rabbitmq/examples/SpammyTopicProducer.java similarity index 100% rename from test/src/com/rabbitmq/examples/SpammyTopicProducer.java rename to src/test/java/com/rabbitmq/examples/SpammyTopicProducer.java diff --git a/test/src/com/rabbitmq/examples/StressPersister.java b/src/test/java/com/rabbitmq/examples/StressPersister.java similarity index 100% rename from test/src/com/rabbitmq/examples/StressPersister.java rename to src/test/java/com/rabbitmq/examples/StressPersister.java diff --git a/test/src/com/rabbitmq/examples/TestMain.java b/src/test/java/com/rabbitmq/examples/TestMain.java similarity index 98% rename from test/src/com/rabbitmq/examples/TestMain.java rename to src/test/java/com/rabbitmq/examples/TestMain.java index 0ef4cdb2aa..a640c9dab1 100644 --- a/test/src/com/rabbitmq/examples/TestMain.java +++ b/src/test/java/com/rabbitmq/examples/TestMain.java @@ -42,11 +42,19 @@ import com.rabbitmq.client.impl.FrameHandler; import com.rabbitmq.client.impl.FrameHandlerFactory; import com.rabbitmq.client.impl.SocketFrameHandler; +import com.rabbitmq.client.test.AbstractRMQTestSuite; import com.rabbitmq.utility.BlockingCell; import javax.net.SocketFactory; - +//FIXME needs to get the arguments from System.getProperty +//FIXME this test needs to be transform into Junit public class TestMain { + //Ugly patch to initialize system properties + static{ + new AbstractRMQTestSuite(){ + + }; + } public static void main(String[] args) throws IOException, URISyntaxException { // Show what version this class was compiled with, to check conformance testing Class clazz = TestMain.class; diff --git a/test/src/com/rabbitmq/examples/TracerConcurrencyTest.java b/src/test/java/com/rabbitmq/examples/TracerConcurrencyTest.java similarity index 100% rename from test/src/com/rabbitmq/examples/TracerConcurrencyTest.java rename to src/test/java/com/rabbitmq/examples/TracerConcurrencyTest.java diff --git a/test/src/com/rabbitmq/examples/perf/Broker.java b/src/test/java/com/rabbitmq/examples/perf/Broker.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/Broker.java rename to src/test/java/com/rabbitmq/examples/perf/Broker.java diff --git a/test/src/com/rabbitmq/examples/perf/BrokerValue.java b/src/test/java/com/rabbitmq/examples/perf/BrokerValue.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/BrokerValue.java rename to src/test/java/com/rabbitmq/examples/perf/BrokerValue.java diff --git a/test/src/com/rabbitmq/examples/perf/BrokerVariable.java b/src/test/java/com/rabbitmq/examples/perf/BrokerVariable.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/BrokerVariable.java rename to src/test/java/com/rabbitmq/examples/perf/BrokerVariable.java diff --git a/test/src/com/rabbitmq/examples/perf/Consumer.java b/src/test/java/com/rabbitmq/examples/perf/Consumer.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/Consumer.java rename to src/test/java/com/rabbitmq/examples/perf/Consumer.java diff --git a/test/src/com/rabbitmq/examples/perf/MulticastParams.java b/src/test/java/com/rabbitmq/examples/perf/MulticastParams.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/MulticastParams.java rename to src/test/java/com/rabbitmq/examples/perf/MulticastParams.java diff --git a/test/src/com/rabbitmq/examples/perf/MulticastSet.java b/src/test/java/com/rabbitmq/examples/perf/MulticastSet.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/MulticastSet.java rename to src/test/java/com/rabbitmq/examples/perf/MulticastSet.java diff --git a/test/src/com/rabbitmq/examples/perf/MulticastValue.java b/src/test/java/com/rabbitmq/examples/perf/MulticastValue.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/MulticastValue.java rename to src/test/java/com/rabbitmq/examples/perf/MulticastValue.java diff --git a/test/src/com/rabbitmq/examples/perf/MulticastVariable.java b/src/test/java/com/rabbitmq/examples/perf/MulticastVariable.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/MulticastVariable.java rename to src/test/java/com/rabbitmq/examples/perf/MulticastVariable.java diff --git a/test/src/com/rabbitmq/examples/perf/PerfUtil.java b/src/test/java/com/rabbitmq/examples/perf/PerfUtil.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/PerfUtil.java rename to src/test/java/com/rabbitmq/examples/perf/PerfUtil.java diff --git a/test/src/com/rabbitmq/examples/perf/Producer.java b/src/test/java/com/rabbitmq/examples/perf/Producer.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/Producer.java rename to src/test/java/com/rabbitmq/examples/perf/Producer.java diff --git a/test/src/com/rabbitmq/examples/perf/ProducerConsumerBase.java b/src/test/java/com/rabbitmq/examples/perf/ProducerConsumerBase.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/ProducerConsumerBase.java rename to src/test/java/com/rabbitmq/examples/perf/ProducerConsumerBase.java diff --git a/test/src/com/rabbitmq/examples/perf/RateVsLatencyScenario.java b/src/test/java/com/rabbitmq/examples/perf/RateVsLatencyScenario.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/RateVsLatencyScenario.java rename to src/test/java/com/rabbitmq/examples/perf/RateVsLatencyScenario.java diff --git a/test/src/com/rabbitmq/examples/perf/Scenario.java b/src/test/java/com/rabbitmq/examples/perf/Scenario.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/Scenario.java rename to src/test/java/com/rabbitmq/examples/perf/Scenario.java diff --git a/test/src/com/rabbitmq/examples/perf/ScenarioFactory.java b/src/test/java/com/rabbitmq/examples/perf/ScenarioFactory.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/ScenarioFactory.java rename to src/test/java/com/rabbitmq/examples/perf/ScenarioFactory.java diff --git a/test/src/com/rabbitmq/examples/perf/ScenarioStats.java b/src/test/java/com/rabbitmq/examples/perf/ScenarioStats.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/ScenarioStats.java rename to src/test/java/com/rabbitmq/examples/perf/ScenarioStats.java diff --git a/test/src/com/rabbitmq/examples/perf/SimpleScenario.java b/src/test/java/com/rabbitmq/examples/perf/SimpleScenario.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/SimpleScenario.java rename to src/test/java/com/rabbitmq/examples/perf/SimpleScenario.java diff --git a/test/src/com/rabbitmq/examples/perf/SimpleScenarioStats.java b/src/test/java/com/rabbitmq/examples/perf/SimpleScenarioStats.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/SimpleScenarioStats.java rename to src/test/java/com/rabbitmq/examples/perf/SimpleScenarioStats.java diff --git a/test/src/com/rabbitmq/examples/perf/Stats.java b/src/test/java/com/rabbitmq/examples/perf/Stats.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/Stats.java rename to src/test/java/com/rabbitmq/examples/perf/Stats.java diff --git a/test/src/com/rabbitmq/examples/perf/Variable.java b/src/test/java/com/rabbitmq/examples/perf/Variable.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/Variable.java rename to src/test/java/com/rabbitmq/examples/perf/Variable.java diff --git a/test/src/com/rabbitmq/examples/perf/VariableValue.java b/src/test/java/com/rabbitmq/examples/perf/VariableValue.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/VariableValue.java rename to src/test/java/com/rabbitmq/examples/perf/VariableValue.java diff --git a/test/src/com/rabbitmq/examples/perf/VaryingScenario.java b/src/test/java/com/rabbitmq/examples/perf/VaryingScenario.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/VaryingScenario.java rename to src/test/java/com/rabbitmq/examples/perf/VaryingScenario.java diff --git a/test/src/com/rabbitmq/examples/perf/VaryingScenarioStats.java b/src/test/java/com/rabbitmq/examples/perf/VaryingScenarioStats.java similarity index 100% rename from test/src/com/rabbitmq/examples/perf/VaryingScenarioStats.java rename to src/test/java/com/rabbitmq/examples/perf/VaryingScenarioStats.java diff --git a/test/src/com/rabbitmq/tools/Host.java b/src/test/java/com/rabbitmq/tools/Host.java similarity index 89% rename from test/src/com/rabbitmq/tools/Host.java rename to src/test/java/com/rabbitmq/tools/Host.java index 7944a3cbd9..20fb43cdcf 100644 --- a/test/src/com/rabbitmq/tools/Host.java +++ b/src/test/java/com/rabbitmq/tools/Host.java @@ -17,18 +17,32 @@ package com.rabbitmq.tools; -import com.rabbitmq.client.impl.NetworkConnection; - import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; +import java.util.Properties; + +import com.rabbitmq.client.impl.NetworkConnection; public class Host { + + static { + Properties TESTS_PROPS = new Properties(System.getProperties()); + TESTS_PROPS.setProperty("make.bin", System.getenv("MAKE") == null ? "make" : System.getenv("MAKE")); + try { + TESTS_PROPS.load(Host.class.getClassLoader().getResourceAsStream("build.properties")); + TESTS_PROPS.load(Host.class.getClassLoader().getResourceAsStream("config.properties")); + System.setProperties(TESTS_PROPS); + } catch (IOException e) { + System.err + .println("build.properties or config.properties not found in classpath, copy build.properties and config.properties into src/test/resources"); + } + } + private static String capture(InputStream is) throws IOException diff --git a/test/src/com/rabbitmq/utility/IntAllocatorTests.java b/src/test/java/com/rabbitmq/utility/IntAllocatorTests.java similarity index 100% rename from test/src/com/rabbitmq/utility/IntAllocatorTests.java rename to src/test/java/com/rabbitmq/utility/IntAllocatorTests.java diff --git a/src/test/resources/build.properties b/src/test/resources/build.properties new file mode 100644 index 0000000000..f56a7925b0 --- /dev/null +++ b/src/test/resources/build.properties @@ -0,0 +1,23 @@ +alt.javac.source=1.8 +alt.javac.target=1.8 +build.out=build +bundle.name=RabbitMQ client library +bundle.out=${build.out}/bundle +bundle.symbolicName=com.rabbitmq.client +bundlor.home=bundlor +dist.out=${build.out}/dist +impl.version=0.0.0 +javac.debug=false +javac.out=${build.out}/classes +javadoc.out=build/doc/api +lib.out=${build.out}/lib +python.bin=python +sibling.codegen.dir=../rabbitmq_codegen +sibling.rabbitmq_test.dir=../rabbitmq_test +rabbitmqctl.bin=../rabbit/scripts/rabbitmqctl +spec.version=0.9.1 +src.generated=${build.out}/gensrc +standard.javac.source=1.8 +standard.javac.target=1.8 +test.javac.out=${build.out}/test/classes +test.src.home=test/src diff --git a/src/test/resources/config.properties b/src/test/resources/config.properties new file mode 100644 index 0000000000..c9851fb271 --- /dev/null +++ b/src/test/resources/config.properties @@ -0,0 +1,7 @@ +broker.hostname=localhost +broker.port=5672 +test.main=com.rabbitmq.examples.TestMain +test.producer.rate-limit=100000 +test.producer.message-count=30000 +test.producer.commit-every=-1 +test.producer.send-completion=false diff --git a/test/src/com/rabbitmq/client/test/server/ServerTests.java b/test/src/com/rabbitmq/client/test/server/ServerTests.java deleted file mode 100644 index bc86b366ab..0000000000 --- a/test/src/com/rabbitmq/client/test/server/ServerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// The contents of this file are subject to the Mozilla Public License -// Version 1.1 (the "License"); you may not use this file except in -// compliance with the License. You may obtain a copy of the License -// at http://www.mozilla.org/MPL/ -// -// Software distributed under the License is distributed on an "AS IS" -// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See -// the License for the specific language governing rights and -// limitations under the License. -// -// The Original Code is RabbitMQ. -// -// The Initial Developer of the Original Code is GoPivotal, Inc. -// Copyright (c) 2007-2015 Pivotal Software, Inc. All rights reserved. -// - - -package com.rabbitmq.client.test.server; - -import junit.framework.TestCase; -import junit.framework.TestSuite; - -public class ServerTests extends TestCase { - public static TestSuite suite() { - TestSuite suite = new TestSuite("server-tests"); - add(suite); - return suite; - } - - public static void add(TestSuite suite) { - suite.addTestSuite(Permissions.class); - suite.addTestSuite(DurableBindingLifecycle.class); - suite.addTestSuite(DeadLetterExchangeDurable.class); - suite.addTestSuite(EffectVisibilityCrossNodeTest.class); - suite.addTestSuite(ExclusiveQueueDurability.class); - suite.addTestSuite(AbsentQueue.class); - suite.addTestSuite(AlternateExchangeEquivalence.class); - suite.addTestSuite(MemoryAlarms.class); - suite.addTestSuite(MessageRecovery.class); - suite.addTestSuite(Firehose.class); - suite.addTestSuite(PersistenceGuarantees.class); - suite.addTestSuite(Shutdown.class); - suite.addTestSuite(BlockedConnection.class); - suite.addTestSuite(ChannelLimitNegotiation.class); - suite.addTestSuite(LoopbackUsers.class); - } -} From 9bcae07821101814b34c5a18e71563999c19eb23 Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Mon, 21 Dec 2015 12:31:42 -0800 Subject: [PATCH 02/13] feature compatibility with ant restored --- .gitignore | 5 +++++ build.properties | 2 +- build.xml | 11 ++++++----- pom.xml | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 7feeba8f39..7e86638bef 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,8 @@ /out/ /tmp/ junit*.properties +/target/ +/.DS_Store +/.classpath +/.project +/.settings diff --git a/build.properties b/build.properties index 5dcb956553..acfc2df365 100644 --- a/build.properties +++ b/build.properties @@ -7,7 +7,7 @@ bundle.symbolicName=com.rabbitmq.client bundlor.home=bundlor dist.out=${build.out}/dist impl.version=0.0.0 -javac.debug=false +javac.debug=true javac.out=${build.out}/classes javadoc.out=build/doc/api lib.out=${build.out}/lib diff --git a/build.xml b/build.xml index 0b5cc50339..0487e4e85a 100644 --- a/build.xml +++ b/build.xml @@ -2,8 +2,8 @@ - - + + @@ -81,15 +81,16 @@ - + --> @@ -190,7 +191,7 @@ - + diff --git a/pom.xml b/pom.xml index 6a8e93fae9..3d23f0816d 100644 --- a/pom.xml +++ b/pom.xml @@ -87,8 +87,8 @@ maven-compiler-plugin 3.2 - 1.8 - 1.8 + 1.6 + 1.6 -Xlint:deprecation -Xlint:unchecked From 95ab8b944c139e663accecb205abb4e9a2718b4e Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Mon, 21 Dec 2015 14:02:04 -0800 Subject: [PATCH 03/13] Add TestMain to junit tests (still no assert but can run with junit) --- .../client/test/AbstractRMQTestSuite.java | 51 ------------------- .../java/com/rabbitmq/examples/TestMain.java | 45 ++++++++++++---- 2 files changed, 34 insertions(+), 62 deletions(-) diff --git a/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java b/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java index 43a2094dd5..72bcc0ce72 100644 --- a/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java +++ b/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java @@ -73,55 +73,4 @@ public void runTest(Test test, TestResult result) { test.run(result); } - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - } diff --git a/src/test/java/com/rabbitmq/examples/TestMain.java b/src/test/java/com/rabbitmq/examples/TestMain.java index a640c9dab1..de6b679171 100644 --- a/src/test/java/com/rabbitmq/examples/TestMain.java +++ b/src/test/java/com/rabbitmq/examples/TestMain.java @@ -46,30 +46,43 @@ import com.rabbitmq.utility.BlockingCell; import javax.net.SocketFactory; + +import org.junit.Test; //FIXME needs to get the arguments from System.getProperty //FIXME this test needs to be transform into Junit public class TestMain { //Ugly patch to initialize system properties static{ - new AbstractRMQTestSuite(){ - - }; + new AbstractRMQTestSuite(){}; + } + + static String URI = "amqp://localhost"; + + public static void main(String[] args) throws IOException, URISyntaxException { + if (args.length > 0) URI = args[0]; + new TestMain().test(); } - public static void main(String[] args) throws IOException, URISyntaxException { + + + @Test + public void test() throws IOException, URISyntaxException { // Show what version this class was compiled with, to check conformance testing Class clazz = TestMain.class; String javaVersion = System.getProperty("java.version"); System.out.println(clazz.getName() + " : javac v" + getCompilerVersion(clazz) + " on " + javaVersion); try { boolean silent = Boolean.getBoolean("silent"); - final String uri = (args.length > 0) ? args[0] : "amqp://localhost"; + final String uri = URI; runConnectionNegotiationTest(uri); final Connection conn = new ConnectionFactory(){{setUri(uri);}}.newConnection(); if (!silent) { System.out.println("Channel 0 fully open."); } - new TestMain(conn, silent).run(); + TestMain testMain = new TestMain(); + testMain.set_connection(conn); + testMain.set_silent(silent); + testMain.run(); runProducerConsumerTest(uri, 500); runProducerConsumerTest(uri, 0); @@ -226,19 +239,29 @@ public static void sleep(int ms) { } } - private final Connection _connection; + private Connection _connection; private Channel _ch1; private int _messageId = 0; - private final boolean _silent; + private boolean _silent; private volatile BlockingCell returnCell; - public TestMain(Connection connection, boolean silent) { - _connection = connection; - _silent = silent; + public TestMain() { + } +// public TestMain(Connection connection, boolean silent) { +// _connection = connection; +// _silent = silent; +// } + + public void set_connection(Connection _connection) { + this._connection = _connection; + } + + public void set_silent(boolean _silent) { + this._silent = _silent; } public Channel createChannel() throws IOException { From a1132ed58d11c97be48766c5eb644590f566f34a Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Tue, 22 Dec 2015 13:52:34 -0800 Subject: [PATCH 04/13] #37 filter functional tests that require Umbrella + add maven plugins for javadoc source and jar with descriptors + add maven versions plugin --- pom.xml | 68 ++++++++++- .../test/functional/FunctionalTests.java | 115 ++++++++++-------- 2 files changed, 128 insertions(+), 55 deletions(-) diff --git a/pom.xml b/pom.xml index 3d23f0816d..e65b58503d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,13 +2,16 @@ 4.0.0 + com.rabbitmq - rabbitmq-java-client + amqp-client VERSION jar + RabbitMQ Java Client RabbitMQ Java client http://www.rabbitmq.com + ASL 2.0 @@ -26,10 +29,12 @@ repo + https://github.com/rabbitmq/rabbitmq-java-client.git scm:git:https://github.com/rabbitmq/rabbitmq-java-client.git + rabbitmq.team @@ -39,9 +44,11 @@ + UTF-8 + commons-cli @@ -62,6 +69,7 @@ test + @@ -115,8 +123,66 @@ + + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + true + + true + true + + true + + + + + + + jar + test-jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + + jar + test-jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.3 + + -Xdoclint:none + + + + + jar + test-jar + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.2 + + sonatype-nexus-staging diff --git a/src/test/java/com/rabbitmq/client/test/functional/FunctionalTests.java b/src/test/java/com/rabbitmq/client/test/functional/FunctionalTests.java index ce2a830cc6..d3b2e6aeb1 100644 --- a/src/test/java/com/rabbitmq/client/test/functional/FunctionalTests.java +++ b/src/test/java/com/rabbitmq/client/test/functional/FunctionalTests.java @@ -25,60 +25,67 @@ import junit.framework.TestSuite; public class FunctionalTests extends AbstractRMQTestSuite { - public static TestSuite suite() { - TestSuite suite = new TestSuite("functional"); - add(suite); - return suite; - } + public static TestSuite suite() { + TestSuite suite = new TestSuite("functional"); + add(suite); + return suite; + } - public static void add(TestSuite suite) { - suite.addTestSuite(ConnectionOpen.class); - suite.addTestSuite(Heartbeat.class); - suite.addTestSuite(Tables.class); - suite.addTestSuite(DoubleDeletion.class); - suite.addTestSuite(Routing.class); - suite.addTestSuite(BindingLifecycle.class); - suite.addTestSuite(Recover.class); - suite.addTestSuite(Reject.class); - suite.addTestSuite(Transactions.class); - suite.addTestSuite(RequeueOnConnectionClose.class); - suite.addTestSuite(RequeueOnChannelClose.class); - suite.addTestSuite(DurableOnTransient.class); - suite.addTestSuite(NoRequeueOnCancel.class); - suite.addTestSuite(Bug20004Test.class); - suite.addTestSuite(ExchangeDeleteIfUnused.class); - suite.addTestSuite(QosTests.class); - suite.addTestSuite(AlternateExchange.class); - suite.addTestSuite(ExchangeExchangeBindings.class); - suite.addTestSuite(ExchangeExchangeBindingsAutoDelete.class); - suite.addTestSuite(ExchangeDeclare.class); - suite.addTestSuite(FrameMax.class); - suite.addTestSuite(QueueLifecycle.class); - suite.addTestSuite(QueueLease.class); - suite.addTestSuite(QueueExclusivity.class); - suite.addTestSuite(QueueSizeLimit.class); - suite.addTestSuite(InvalidAcks.class); - suite.addTestSuite(InvalidAcksTx.class); - suite.addTestSuite(DefaultExchange.class); - suite.addTestSuite(UnbindAutoDeleteExchange.class); - suite.addTestSuite(Confirm.class); - suite.addTestSuite(ConsumerCancelNotification.class); - suite.addTestSuite(UnexpectedFrames.class); - suite.addTestSuite(PerQueueTTL.class); - suite.addTestSuite(PerMessageTTL.class); - suite.addTestSuite(PerQueueVsPerMessageTTL.class); - suite.addTestSuite(DeadLetterExchange.class); - suite.addTestSuite(SaslMechanisms.class); - suite.addTestSuite(UserIDHeader.class); - suite.addTestSuite(InternalExchange.class); - suite.addTestSuite(CcRoutes.class); - suite.addTestSuite(WorkPoolTests.class); - suite.addTestSuite(HeadersExchangeValidation.class); - suite.addTestSuite(ConsumerPriorities.class); - suite.addTestSuite(Policies.class); - suite.addTestSuite(ConnectionRecovery.class); - suite.addTestSuite(ExceptionHandling.class); - suite.addTestSuite(PerConsumerPrefetch.class); - suite.addTestSuite(DirectReplyTo.class); + public static void add(TestSuite suite) { + suite.addTestSuite(ConnectionOpen.class); + suite.addTestSuite(Heartbeat.class); + suite.addTestSuite(Tables.class); + suite.addTestSuite(DoubleDeletion.class); + suite.addTestSuite(Routing.class); + suite.addTestSuite(BindingLifecycle.class); + suite.addTestSuite(Recover.class); + suite.addTestSuite(Reject.class); + suite.addTestSuite(Transactions.class); + suite.addTestSuite(RequeueOnConnectionClose.class); + suite.addTestSuite(RequeueOnChannelClose.class); + suite.addTestSuite(DurableOnTransient.class); + suite.addTestSuite(NoRequeueOnCancel.class); + suite.addTestSuite(Bug20004Test.class); + suite.addTestSuite(ExchangeDeleteIfUnused.class); + suite.addTestSuite(QosTests.class); + suite.addTestSuite(AlternateExchange.class); + suite.addTestSuite(ExchangeExchangeBindings.class); + suite.addTestSuite(ExchangeExchangeBindingsAutoDelete.class); + suite.addTestSuite(ExchangeDeclare.class); + suite.addTestSuite(FrameMax.class); + suite.addTestSuite(QueueLifecycle.class); + suite.addTestSuite(QueueLease.class); + suite.addTestSuite(QueueExclusivity.class); + suite.addTestSuite(QueueSizeLimit.class); + suite.addTestSuite(InvalidAcks.class); + suite.addTestSuite(InvalidAcksTx.class); + suite.addTestSuite(DefaultExchange.class); + suite.addTestSuite(UnbindAutoDeleteExchange.class); + suite.addTestSuite(Confirm.class); + suite.addTestSuite(ConsumerCancelNotification.class); + suite.addTestSuite(UnexpectedFrames.class); + suite.addTestSuite(PerQueueTTL.class); + //needs rabbitmqctl + if (isUnderUmbrella()) { + suite.addTestSuite(PerMessageTTL.class); + suite.addTestSuite(PerQueueVsPerMessageTTL.class); + } + suite.addTestSuite(DeadLetterExchange.class); + suite.addTestSuite(SaslMechanisms.class); + //needs rabbitmqctl + if (isUnderUmbrella()) suite.addTestSuite(UserIDHeader.class); + suite.addTestSuite(InternalExchange.class); + suite.addTestSuite(CcRoutes.class); + suite.addTestSuite(WorkPoolTests.class); + suite.addTestSuite(HeadersExchangeValidation.class); + suite.addTestSuite(ConsumerPriorities.class); + //needs rabbitmqctl + if (isUnderUmbrella()) { + suite.addTestSuite(Policies.class); + suite.addTestSuite(ConnectionRecovery.class); } + suite.addTestSuite(ExceptionHandling.class); + suite.addTestSuite(PerConsumerPrefetch.class); + suite.addTestSuite(DirectReplyTo.class); + } } From 8d461936b6ae027ae962d21c383bf26aa4c3063e Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Tue, 22 Dec 2015 14:09:40 -0800 Subject: [PATCH 05/13] fix ant path to properties files and java source files --- build.properties | 24 ------------------------ build.xml | 10 +++++----- config.properties | 7 ------- src/test/resources/build.properties | 11 ++++++----- 4 files changed, 11 insertions(+), 41 deletions(-) delete mode 100644 build.properties delete mode 100644 config.properties diff --git a/build.properties b/build.properties deleted file mode 100644 index acfc2df365..0000000000 --- a/build.properties +++ /dev/null @@ -1,24 +0,0 @@ -alt.javac.source=1.6 -alt.javac.target=1.6 -build.out=build -bundle.name=RabbitMQ client library -bundle.out=${build.out}/bundle -bundle.symbolicName=com.rabbitmq.client -bundlor.home=bundlor -dist.out=${build.out}/dist -impl.version=0.0.0 -javac.debug=true -javac.out=${build.out}/classes -javadoc.out=build/doc/api -lib.out=${build.out}/lib -python.bin=python -sibling.codegen.dir=../rabbitmq_codegen -sibling.rabbitmq_test.dir=../rabbitmq_test -rabbitmqctl.bin=../rabbit/scripts/rabbitmqctl -spec.version=0.9.1 -src.generated=${build.out}/gensrc -standard.javac.source=1.6 -standard.javac.target=1.6 -test.javac.out=${build.out}/test/classes -test.src.home=src/test/java -maven.javac.source=src/main/java diff --git a/build.xml b/build.xml index 0487e4e85a..e2d5d21c8b 100644 --- a/build.xml +++ b/build.xml @@ -2,8 +2,8 @@ - - + + @@ -90,7 +90,7 @@ --> @@ -191,7 +191,7 @@ - + @@ -212,7 +212,7 @@ srcdir="${test.src.home}" destdir="${test.javac.out}" debug="true" - source="${javac.source}" + source="${maven.src.home}" target="${javac.target}"> diff --git a/config.properties b/config.properties deleted file mode 100644 index c9851fb271..0000000000 --- a/config.properties +++ /dev/null @@ -1,7 +0,0 @@ -broker.hostname=localhost -broker.port=5672 -test.main=com.rabbitmq.examples.TestMain -test.producer.rate-limit=100000 -test.producer.message-count=30000 -test.producer.commit-every=-1 -test.producer.send-completion=false diff --git a/src/test/resources/build.properties b/src/test/resources/build.properties index f56a7925b0..acfbd12a33 100644 --- a/src/test/resources/build.properties +++ b/src/test/resources/build.properties @@ -1,5 +1,5 @@ -alt.javac.source=1.8 -alt.javac.target=1.8 +alt.javac.source=1.6 +alt.javac.target=1.6 build.out=build bundle.name=RabbitMQ client library bundle.out=${build.out}/bundle @@ -17,7 +17,8 @@ sibling.rabbitmq_test.dir=../rabbitmq_test rabbitmqctl.bin=../rabbit/scripts/rabbitmqctl spec.version=0.9.1 src.generated=${build.out}/gensrc -standard.javac.source=1.8 -standard.javac.target=1.8 +standard.javac.source=1.6 +standard.javac.target=1.6 test.javac.out=${build.out}/test/classes -test.src.home=test/src +test.src.home=${basedir}/src/test/java +maven.src.home=${basedir}/src/main/java From 05ffe53f1b8f598e7ab51cc1d27f882479ae2ab6 Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Tue, 22 Dec 2015 14:36:17 -0800 Subject: [PATCH 06/13] fix wrong source in build.xml + improve message when not finding the properties files in the classpath for ant. --- build.xml | 2 +- .../com/rabbitmq/client/test/AbstractRMQTestSuite.java | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build.xml b/build.xml index e2d5d21c8b..e9784eaf80 100644 --- a/build.xml +++ b/build.xml @@ -212,7 +212,7 @@ srcdir="${test.src.home}" destdir="${test.javac.out}" debug="true" - source="${maven.src.home}" + source="${javac.source}" target="${javac.target}"> diff --git a/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java b/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java index 72bcc0ce72..dcd94d71ea 100644 --- a/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java +++ b/src/test/java/com/rabbitmq/client/test/AbstractRMQTestSuite.java @@ -1,7 +1,6 @@ package com.rabbitmq.client.test; import java.io.File; -import java.io.IOException; import java.net.Socket; import java.nio.file.FileSystems; import java.util.Properties; @@ -24,9 +23,9 @@ public abstract class AbstractRMQTestSuite extends TestSuite { TESTS_PROPS.load(AbstractRMQTestSuite.class.getClassLoader().getResourceAsStream("build.properties")); TESTS_PROPS.load(AbstractRMQTestSuite.class.getClassLoader().getResourceAsStream("config.properties")); buildPropertiesFound = true; - } catch (IOException e) { - System.err - .println("build.properties or config.properties not found in classpath,copy build.properties and config.properties into src/test/resources"); + } catch (Exception e) { + System.out + .println("build.properties or config.properties not found in classpath,copy build.properties and config.properties into src/test/resources, ignore this message if running with ant"); } } From a61437dc0bf60240329f680f71657fc2b2a4dcf0 Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Tue, 22 Dec 2015 14:47:21 -0800 Subject: [PATCH 07/13] cleaning --- .settings/org.eclipse.core.resources.prefs | 5 ----- .settings/org.eclipse.jdt.core.prefs | 5 ----- .settings/org.eclipse.m2e.core.prefs | 4 ---- 3 files changed, 14 deletions(-) delete mode 100644 .settings/org.eclipse.core.resources.prefs delete mode 100644 .settings/org.eclipse.jdt.core.prefs delete mode 100644 .settings/org.eclipse.m2e.core.prefs diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index cdfe4f1b66..0000000000 --- a/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=UTF-8 -encoding//src/test/java=UTF-8 -encoding//src/test/resources=UTF-8 -encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 714351aec1..0000000000 --- a/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb..0000000000 --- a/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 From 532802e1be5e4cf7caab4f560f188d390acf7583 Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Tue, 22 Dec 2015 14:48:50 -0800 Subject: [PATCH 08/13] restore moving files after amqp generate --- build.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.xml b/build.xml index e9784eaf80..c125cef210 100644 --- a/build.xml +++ b/build.xml @@ -81,13 +81,12 @@ - Date: Tue, 22 Dec 2015 14:55:44 -0800 Subject: [PATCH 09/13] minor cleaning on TestMain --- src/test/java/com/rabbitmq/examples/TestMain.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/rabbitmq/examples/TestMain.java b/src/test/java/com/rabbitmq/examples/TestMain.java index de6b679171..c28eb4f05b 100644 --- a/src/test/java/com/rabbitmq/examples/TestMain.java +++ b/src/test/java/com/rabbitmq/examples/TestMain.java @@ -79,10 +79,9 @@ public void test() throws IOException, URISyntaxException { System.out.println("Channel 0 fully open."); } - TestMain testMain = new TestMain(); - testMain.set_connection(conn); - testMain.set_silent(silent); - testMain.run(); + set_connection(conn); + set_silent(silent); + run(); runProducerConsumerTest(uri, 500); runProducerConsumerTest(uri, 0); From f617588a3b6b171e612b47ba53c871d067af004c Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Wed, 23 Dec 2015 11:22:05 -0800 Subject: [PATCH 10/13] add runperftestMaven.sh and stresspersisterMaven.sh inside script folder to run stress tests using maven --- scripts/runperftestMaven.sh | 27 +++++++++++++ scripts/stresspersisterMaven.sh | 72 +++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100755 scripts/runperftestMaven.sh create mode 100755 scripts/stresspersisterMaven.sh diff --git a/scripts/runperftestMaven.sh b/scripts/runperftestMaven.sh new file mode 100755 index 0000000000..6bca7b6f7f --- /dev/null +++ b/scripts/runperftestMaven.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +cd `dirname $0`/.. +run() { + echo "=== running with '$2'" + mvn -q exec:java -Dexec.classpathScope=test -Dexec.mainClass="com.rabbitmq.examples.PerfTest" -Dexec.args=" -h $1 -z 10 -i 20 $2" + sleep 2 +} + +for sz in "" "-s 1000"; do + for pers in "" "-f persistent"; do + for args in \ + "" \ + "-a" \ + "-m 1" \ + "-m 1 -n 1" \ + "-m 10" \ + "-m 10 -n 10" \ + ; do + run $1 "${args} ${pers} ${sz}" + done + done +done + +for args in "-a -f mandatory" "-a -f mandatory -f immediate"; do + run $1 "$args" +done diff --git a/scripts/stresspersisterMaven.sh b/scripts/stresspersisterMaven.sh new file mode 100755 index 0000000000..a6e1182d04 --- /dev/null +++ b/scripts/stresspersisterMaven.sh @@ -0,0 +1,72 @@ +#!/bin/sh +cd `dirname $0`/.. +commentText=$1 +shift + +if [ -z "$commentText" ]; then + echo "Comment text must be supplied!" + exit 1 +fi + +echo "Comment text: $commentText. Press enter to continue." +read dummy + +function run1 { + (while true; do (date +%s.%N; ps ax -o '%mem rss sz vsz args' | grep "beam.*-s rabbit" | grep -v grep) | tr '\n' ' ' | awk '{print $1,$2/100,$3,$4,$5}'; sleep 1; done) > memlog.txt & + memlogger=$! + echo "STARTED MEMLOGGER $memlogger" + sleep 2 + mvn -q exec:java -Dexec.classpathScope=test -Dexec.mainClass="com.rabbitmq.examples.StressPersister" -Dexec.args=" -B $1 -b $2 -C $commentText "| tee stressoutput.txt + logfile=$(head -1 stressoutput.txt) + sleep 2 + kill $memlogger + echo "STOPPED MEMLOGGER $memlogger" + baselog=$(basename $logfile .out) + mv memlog.txt $baselog.mem + grep -v '^#' $logfile > stressoutput.txt + mv stressoutput.txt $logfile +} + +function run32b { + run1 32b 5000 + run1 32b 10000 + run1 32b 20000 + run1 32b 40000 + run1 32b 80000 +} + +function run1m { + run1 1m 125 + run1 1m 250 + run1 1m 500 + run1 1m 1000 + run1 1m 2000 + run1 1m 4000 +} + +function chartall { + for logfile in *.out + do + echo $logfile + baselog=$(basename $logfile .out) + firsttimestamp=$(cat $baselog.mem | head -1 | awk '{print $1}') + cat > $baselog.gnuplot < $baselog.png + done +} + +run32b +run1m +chartall From 193c449b547b2038739f7aee6bc0c48fa5afffcd Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Tue, 5 Jan 2016 14:01:26 -0800 Subject: [PATCH 11/13] bugfix code generation not working --- build.xml | 2 +- pom.xml | 135 ++++++++++++++++++++++++++++++++---------------------- 2 files changed, 80 insertions(+), 57 deletions(-) diff --git a/build.xml b/build.xml index c125cef210..eedc5cf355 100644 --- a/build.xml +++ b/build.xml @@ -81,7 +81,7 @@ - diff --git a/pom.xml b/pom.xml index e65b58503d..66e133b9b2 100644 --- a/pom.xml +++ b/pom.xml @@ -72,6 +72,29 @@ + + maven-antrun-plugin + 1.7 + + + generate-sources + + + + + + + + + + + + + run + + + + org.codehaus.mojo build-helper-maven-plugin @@ -124,62 +147,62 @@ - org.apache.maven.plugins - maven-jar-plugin - 2.6 - - true - - true - true - - true - - - - - - - jar - test-jar - - - - - - org.apache.maven.plugins - maven-source-plugin - 2.4 - - - - jar - test-jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.3 - - -Xdoclint:none - - - - - jar - test-jar - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.2 - + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + true + + true + true + + true + + + + + + + jar + test-jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + + jar + test-jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.3 + + -Xdoclint:none + + + + + jar + test-jar + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.2 + From 10d17d02827ee8b68bcb0ebf98b7105dbc1ea1b8 Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Tue, 5 Jan 2016 15:55:54 -0800 Subject: [PATCH 12/13] feature remove dependency to ant build.xml file from pom.xml --- pom.xml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 66e133b9b2..9efaa9365f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.rabbitmq amqp-client - VERSION + 3.6.1-SNAPSHOT jar RabbitMQ Java Client @@ -79,15 +79,60 @@ generate-sources - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + run From 4bdc1c197cf72af40717ebce93b724f6e1e9f2ab Mon Sep 17 00:00:00 2001 From: Patrick Sauts Date: Wed, 6 Jan 2016 15:24:55 -0800 Subject: [PATCH 13/13] feature add Clean generated sources at clean phase --- pom.xml | 16 ++++++++++++++++ src/test/java/com/rabbitmq/tools/Host.java | 9 +++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 9efaa9365f..27812a14bf 100644 --- a/pom.xml +++ b/pom.xml @@ -72,6 +72,22 @@ + + + maven-clean-plugin + 3.0.0 + + + + ${basedir}/build + + **/* + + false + + + + maven-antrun-plugin 1.7 diff --git a/src/test/java/com/rabbitmq/tools/Host.java b/src/test/java/com/rabbitmq/tools/Host.java index 20fb43cdcf..2812b2b38e 100644 --- a/src/test/java/com/rabbitmq/tools/Host.java +++ b/src/test/java/com/rabbitmq/tools/Host.java @@ -36,10 +36,11 @@ public class Host { try { TESTS_PROPS.load(Host.class.getClassLoader().getResourceAsStream("build.properties")); TESTS_PROPS.load(Host.class.getClassLoader().getResourceAsStream("config.properties")); - System.setProperties(TESTS_PROPS); - } catch (IOException e) { - System.err - .println("build.properties or config.properties not found in classpath, copy build.properties and config.properties into src/test/resources"); + } catch (Exception e) { + System.out + .println("build.properties or config.properties not found in classpath,copy build.properties and config.properties into src/test/resources, ignore this message if running with ant"); + }finally { + System.setProperties(TESTS_PROPS); } }