Make tests classes and HubMessageType enum package private in the Java client(#2992)
This commit is contained in:
parent
f88b7ce044
commit
bf1aa1d818
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
package com.microsoft.aspnet.signalr;
|
||||
|
||||
public enum HubMessageType {
|
||||
enum HubMessageType {
|
||||
INVOCATION(1),
|
||||
STREAM_ITEM(2),
|
||||
COMPLETION(3),
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
|||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HandshakeProtocolTest {
|
||||
class HandshakeProtocolTest {
|
||||
|
||||
@Test
|
||||
public void VerifyCreateHandshakerequestMessage() {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
|||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
public class HubConnectionTest {
|
||||
class HubConnectionTest {
|
||||
private static final String RECORD_SEPARATOR = "\u001e";
|
||||
|
||||
@Test
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HubExceptionTest {
|
||||
class HubExceptionTest {
|
||||
@Test
|
||||
public void VeryHubExceptionMesssageIsSet() {
|
||||
String errorMessage = "This is a HubException";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import java.util.List;
|
|||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
public class JsonHubProtocolTest {
|
||||
class JsonHubProtocolTest {
|
||||
private JsonHubProtocol jsonHubProtocol = new JsonHubProtocol();
|
||||
|
||||
@Test
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
|||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
public class NegotiateResponseTest {
|
||||
class NegotiateResponseTest {
|
||||
|
||||
@Test
|
||||
public void VerifyNegotiateResponse() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import org.junit.jupiter.params.ParameterizedTest;
|
|||
import org.junit.jupiter.params.provider.Arguments;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
public class ResolveNegotiateUrlTest {
|
||||
class ResolveNegotiateUrlTest {
|
||||
private static Stream<Arguments> protocols() {
|
||||
return Stream.of(
|
||||
Arguments.of("http://example.com/hub/", "http://example.com/hub/negotiate"),
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit;
|
|||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class WebSocketTransportTest {
|
||||
class WebSocketTransportTest {
|
||||
@Test
|
||||
public void WebsocketThrowsIfItCantConnect() throws Exception {
|
||||
Transport transport = new WebSocketTransport("www.notarealurl12345.fake", new NullLogger());
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import org.junit.jupiter.params.ParameterizedTest;
|
|||
import org.junit.jupiter.params.provider.Arguments;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
public class WebSocketTransportUrlFormatTest {
|
||||
class WebSocketTransportUrlFormatTest {
|
||||
private static Stream<Arguments> protocols() {
|
||||
return Stream.of(
|
||||
Arguments.of("http://example.com", "ws://example.com"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue