Merge pull request #26 from SreeramGarlapati/jUnitTests
suffix all tests with *Test - so that maven cmd-line (aka sure-fire plugin) to pickup
This commit is contained in:
Коммит
e54225f48d
|
@ -16,7 +16,7 @@ import com.microsoft.azure.eventhubs.lib.TestEventHubInfo;
|
|||
import com.microsoft.azure.servicebus.ConnectionStringBuilder;
|
||||
import com.microsoft.azure.servicebus.ServiceBusException;
|
||||
|
||||
public class ConcurrentReceivers
|
||||
public class ConcurrentReceiversTest
|
||||
{
|
||||
TestEventHubInfo eventHubInfo;
|
||||
ConnectionStringBuilder connStr;
|
|
@ -9,7 +9,7 @@ import com.microsoft.azure.eventhubs.*;
|
|||
import com.microsoft.azure.eventhubs.lib.*;
|
||||
import com.microsoft.azure.servicebus.*;
|
||||
|
||||
public class EventHubClientTests extends TestBase
|
||||
public class EventHubClientTest extends TestBase
|
||||
{
|
||||
|
||||
@Test()
|
|
@ -0,0 +1,14 @@
|
|||
package com.microsoft.azure.eventhubs.connstrbuilder;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class ConnStrBuilderTest
|
||||
{
|
||||
|
||||
@Test
|
||||
public void parseConnectionStringTests()
|
||||
{
|
||||
// TODO:
|
||||
}
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package com.microsoft.azure.eventhubs.connstrbuilder;
|
||||
|
||||
public class ConnStrBuilderTests
|
||||
{
|
||||
|
||||
public ConnStrBuilderTests()
|
||||
{
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.microsoft.azure.eventhubs.eventdata;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class EventDataTest
|
||||
{
|
||||
|
||||
@Test
|
||||
public void eventDataToMessageTests()
|
||||
{
|
||||
// TODO:
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package com.microsoft.azure.eventhubs.eventdata;
|
||||
|
||||
public class EventDataTests
|
||||
{
|
||||
|
||||
public EventDataTests()
|
||||
{
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
}
|
|
@ -8,7 +8,7 @@ import com.microsoft.azure.eventhubs.*;
|
|||
import com.microsoft.azure.eventhubs.lib.*;
|
||||
import com.microsoft.azure.servicebus.*;
|
||||
|
||||
public class ReceiverEpoch extends TestBase
|
||||
public class ReceiverEpochTest extends TestBase
|
||||
{
|
||||
|
||||
@Test (expected = ReceiverDisconnectedException.class)
|
|
@ -22,7 +22,7 @@ import com.microsoft.azure.eventhubs.lib.*;
|
|||
import com.microsoft.azure.servicebus.*;
|
||||
import com.microsoft.azure.servicebus.amqp.AmqpErrorCode;
|
||||
|
||||
public class ReceiverRetry extends TestBase
|
||||
public class ReceiverRetryTest extends TestBase
|
||||
{
|
||||
Sender1MsgOnLinkFlowHandler recvFlowHandler;
|
||||
TestData data;
|
|
@ -10,7 +10,7 @@ import com.microsoft.azure.eventhubs.*;
|
|||
import com.microsoft.azure.eventhubs.lib.*;
|
||||
import com.microsoft.azure.servicebus.*;
|
||||
|
||||
public class RetryPolicyTests extends TestBase
|
||||
public class RetryPolicyTest extends TestBase
|
||||
{
|
||||
@Test
|
||||
public void testRetryPolicy() throws Exception
|
|
@ -12,9 +12,9 @@ import com.microsoft.azure.eventhubs.*;
|
|||
import com.microsoft.azure.eventhubs.lib.*;
|
||||
import com.microsoft.azure.servicebus.*;
|
||||
|
||||
public class SecurityExceptions extends TestBase
|
||||
public class SecurityExceptionsTest extends TestBase
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(SecurityExceptions.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(SecurityExceptionsTest.class.getName());
|
||||
|
||||
@Test (expected = AuthorizationFailedException.class)
|
||||
public void testEventHubClientUnAuthorizedAccess() throws Throwable
|
|
@ -20,7 +20,7 @@ import com.microsoft.azure.servicebus.ServiceBusException;
|
|||
|
||||
import junit.framework.Assert;
|
||||
|
||||
public class SendLargeMessage
|
||||
public class SendLargeMessageTest
|
||||
{
|
||||
static TestEventHubInfo eventHubInfo;
|
||||
static ConnectionStringBuilder connStr;
|
|
@ -9,7 +9,7 @@ import com.microsoft.azure.eventhubs.lib.*;
|
|||
import com.microsoft.azure.servicebus.*;
|
||||
|
||||
// TODO: Once ConnectionStringBuilder.setOperationTimeout() is implemented - reduce the timeout of this testcase
|
||||
public class TimeoutExceptionTests
|
||||
public class TimeoutExceptionTest
|
||||
{
|
||||
|
||||
@Test (expected = TimeoutException.class)
|
|
@ -1,11 +1,12 @@
|
|||
package com.microsoft.azure.eventhubs.protoncontracts;
|
||||
|
||||
public class SendBatchContract
|
||||
{
|
||||
import org.junit.Test;
|
||||
|
||||
public SendBatchContract()
|
||||
public class SendBatchContractTest
|
||||
{
|
||||
@Test
|
||||
public void parseConnectionStringTests()
|
||||
{
|
||||
// TODO add test to validate the sendBatch contract : https://github.com/apache/qpid-proton/commit/e9e0f31c6894736e54d7d5b624bf3245f704d9af
|
||||
}
|
||||
|
||||
}
|
|
@ -12,7 +12,7 @@ import com.microsoft.azure.eventhubs.lib.*;
|
|||
import com.microsoft.azure.servicebus.*;
|
||||
import com.microsoft.azure.servicebus.amqp.*;
|
||||
|
||||
public class ReceiveTests extends TestBase
|
||||
public class ReceiveTest extends TestBase
|
||||
{
|
||||
@Test()
|
||||
public void testReceiverFilters() throws ServiceBusException, InterruptedException, ExecutionException, IOException
|
|
@ -0,0 +1,13 @@
|
|||
package com.microsoft.azure.eventhubs.sendrecv;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class SendBatchTest {
|
||||
|
||||
@Test
|
||||
public void sendBatchTests()
|
||||
{
|
||||
// TODO:
|
||||
}
|
||||
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package com.microsoft.azure.eventhubs.sendrecv;
|
||||
|
||||
public class SendBatchTests {
|
||||
|
||||
public SendBatchTests() {
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
}
|
Загрузка…
Ссылка в новой задаче