Polish sample package names

This commit is contained in:
Phillip Webb
2015-06-23 00:47:12 -07:00
parent 9c0335fc29
commit 1ce617f1ae
163 changed files with 401 additions and 760 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket;
package samples.websocket.tomcat;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
@@ -29,13 +29,13 @@ import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry
import org.springframework.web.socket.handler.PerConnectionWebSocketHandler;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
import samples.websocket.client.GreetingService;
import samples.websocket.client.SimpleGreetingService;
import samples.websocket.echo.DefaultEchoService;
import samples.websocket.echo.EchoService;
import samples.websocket.echo.EchoWebSocketHandler;
import samples.websocket.reverse.ReverseWebSocketEndpoint;
import samples.websocket.snake.SnakeWebSocketHandler;
import samples.websocket.tomcat.client.GreetingService;
import samples.websocket.tomcat.client.SimpleGreetingService;
import samples.websocket.tomcat.echo.DefaultEchoService;
import samples.websocket.tomcat.echo.EchoService;
import samples.websocket.tomcat.echo.EchoWebSocketHandler;
import samples.websocket.tomcat.reverse.ReverseWebSocketEndpoint;
import samples.websocket.tomcat.snake.SnakeWebSocketHandler;
@Configuration
@EnableAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket.client;
package samples.websocket.tomcat.client;
public interface GreetingService {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket.client;
package samples.websocket.tomcat.client;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket.client;
package samples.websocket.tomcat.client;
public class SimpleGreetingService implements GreetingService {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket.echo;
package samples.websocket.tomcat.echo;
public class DefaultEchoService implements EchoService {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket.echo;
package samples.websocket.tomcat.echo;
public interface EchoService {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket.echo;
package samples.websocket.tomcat.echo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
package samples.websocket.snake;
package samples.websocket.tomcat.snake;
public enum Direction {
NONE, NORTH, SOUTH, EAST, WEST

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
package samples.websocket.snake;
package samples.websocket.tomcat.snake;
public class Location {

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
package samples.websocket.snake;
package samples.websocket.tomcat.snake;
import java.util.ArrayDeque;
import java.util.Collection;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
package samples.websocket.snake;
package samples.websocket.tomcat.snake;
import java.util.Collection;
import java.util.Collections;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
package samples.websocket.snake;
package samples.websocket.tomcat.snake;
import java.awt.Color;
import java.util.Random;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
package samples.websocket.snake;
package samples.websocket.tomcat.snake;
import java.awt.Color;
import java.util.Iterator;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket;
package samples.websocket.tomcat;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
@@ -39,10 +39,10 @@ import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.web.socket.client.WebSocketConnectionManager;
import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import samples.websocket.client.GreetingService;
import samples.websocket.client.SimpleClientWebSocketHandler;
import samples.websocket.client.SimpleGreetingService;
import samples.websocket.tomcat.SampleTomcatWebSocketApplication;
import samples.websocket.tomcat.client.GreetingService;
import samples.websocket.tomcat.client.SimpleClientWebSocketHandler;
import samples.websocket.tomcat.client.SimpleGreetingService;
import static org.junit.Assert.assertEquals;
@RunWith(SpringJUnit4ClassRunner.class)

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package samples.websocket.echo;
package samples.websocket.tomcat.echo;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
@@ -42,12 +42,11 @@ import org.springframework.util.SocketUtils;
import org.springframework.web.socket.client.WebSocketConnectionManager;
import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import samples.websocket.SampleTomcatWebSocketApplication;
import samples.websocket.client.GreetingService;
import samples.websocket.client.SimpleClientWebSocketHandler;
import samples.websocket.client.SimpleGreetingService;
import samples.websocket.echo.CustomContainerWebSocketsApplicationTests.CustomContainerConfiguration;
import samples.websocket.tomcat.SampleTomcatWebSocketApplication;
import samples.websocket.tomcat.client.GreetingService;
import samples.websocket.tomcat.client.SimpleClientWebSocketHandler;
import samples.websocket.tomcat.client.SimpleGreetingService;
import samples.websocket.tomcat.echo.CustomContainerWebSocketsApplicationTests.CustomContainerConfiguration;
import static org.junit.Assert.assertEquals;
@RunWith(SpringJUnit4ClassRunner.class)

View File

@@ -14,12 +14,14 @@
* limitations under the License.
*/
package samples.websocket.snake;
package samples.websocket.tomcat.snake;
import java.io.IOException;
import org.junit.Test;
import samples.websocket.tomcat.snake.Snake;
import samples.websocket.tomcat.snake.SnakeTimer;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.BDDMockito.willThrow;