Make tests classes and HubMessageType enum package private in the Java client(#2992)

This commit is contained in:
Mikael Mengistu 2018-09-20 12:44:19 -07:00 committed by GitHub
parent f88b7ce044
commit bf1aa1d818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@
package com.microsoft.aspnet.signalr;
public enum HubMessageType {
enum HubMessageType {
INVOCATION(1),
STREAM_ITEM(2),
COMPLETION(3),

View File

@ -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() {

View File

@ -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

View File

@ -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";

View File

@ -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

View File

@ -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() {

View File

@ -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"),

View File

@ -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());

View File

@ -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"),