aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-13 08:25:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-13 08:25:16 +1300
commit63ab6dcd5b23b517c9bd810773ae8535b1006c83 (patch)
tree35d14e462dde6c86eb454bcf56b906d064b65dd7 /test/org/traccar/web
parent55f11c9dda7394d4c8c96bfe5da9497756df6866 (diff)
downloadtraccar-server-63ab6dcd5b23b517c9bd810773ae8535b1006c83.tar.gz
traccar-server-63ab6dcd5b23b517c9bd810773ae8535b1006c83.tar.bz2
traccar-server-63ab6dcd5b23b517c9bd810773ae8535b1006c83.zip
Rename web server JNDI context test
Diffstat (limited to 'test/org/traccar/web')
-rw-r--r--test/org/traccar/web/WebServerTest.java (renamed from test/org/traccar/web/WebServerInitialContextTest.java)8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/org/traccar/web/WebServerInitialContextTest.java b/test/org/traccar/web/WebServerTest.java
index dd072863c..5a79fbac2 100644
--- a/test/org/traccar/web/WebServerInitialContextTest.java
+++ b/test/org/traccar/web/WebServerTest.java
@@ -10,11 +10,12 @@ import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
-public class WebServerInitialContextTest {
+public class WebServerTest {
+
@Test
- public void smokeTest() throws NamingException {
+ public void contextTest() throws NamingException {
DataSource mockDataSource = (DataSource) Proxy.newProxyInstance(getClass().getClassLoader(),
- new Class[]{DataSource.class}, new InvocationHandler() {
+ new Class[] { DataSource.class }, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
return null;
@@ -24,4 +25,5 @@ public class WebServerInitialContextTest {
Context context = new InitialContext();
context.bind("java:/DefaultDS", mockDataSource);
}
+
}