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