And finally, narya gets the imports/overrides/regen love.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5241 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -90,11 +90,13 @@ public class TestClient extends BureauClient
|
||||
*/
|
||||
static protected class TestAgent extends Agent
|
||||
{
|
||||
@Override
|
||||
public void start ()
|
||||
{
|
||||
log.info("Starting agent " + StringUtil.toString(_agentObj));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop ()
|
||||
{
|
||||
log.info("Stopping agent " + StringUtil.toString(_agentObj));
|
||||
@@ -118,11 +120,13 @@ public class TestClient extends BureauClient
|
||||
}
|
||||
|
||||
// overridden - creates a simple director
|
||||
@Override
|
||||
protected BureauDirector createDirector ()
|
||||
{
|
||||
// just use our test agent exclusively - in the real world, the agent created would depend
|
||||
// on the object's type and/or properties
|
||||
return new BureauDirector(_ctx) {
|
||||
@Override
|
||||
public Agent createAgent (AgentObject agentObj) {
|
||||
return new TestAgent();
|
||||
}
|
||||
|
||||
@@ -121,6 +121,7 @@ public class RegistryTester
|
||||
_server.setClientTarget(_clientTarget);
|
||||
|
||||
Thread thread = new Thread("Registry test thread") {
|
||||
@Override
|
||||
public void run () {
|
||||
log.info(getName() + " started");
|
||||
runTestThread();
|
||||
|
||||
@@ -71,6 +71,7 @@ public class JabberClient
|
||||
|
||||
// log off when they close the window
|
||||
_frame.addWindowListener(new WindowAdapter() {
|
||||
@Override
|
||||
public void windowClosing (WindowEvent evt) {
|
||||
// if we're logged on, log off
|
||||
if (_client.isLoggedOn()) {
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.threerings.crowd.util.CrowdContext;
|
||||
*/
|
||||
public class JabberController extends PlaceController
|
||||
{
|
||||
@Override
|
||||
protected PlaceView createPlaceView (CrowdContext ctx)
|
||||
{
|
||||
return new JabberPanel(ctx);
|
||||
|
||||
@@ -13,12 +13,14 @@ import com.threerings.crowd.data.PlaceConfig;
|
||||
public class JabberConfig extends PlaceConfig
|
||||
{
|
||||
// documentation inherited
|
||||
@Override
|
||||
public PlaceController createController ()
|
||||
{
|
||||
return new JabberController();
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public String getManagerClassName ()
|
||||
{
|
||||
// nothing special needed on the server side
|
||||
|
||||
@@ -7,8 +7,6 @@ import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
|
||||
import com.threerings.crowd.data.JabberConfig;
|
||||
import com.threerings.crowd.data.PlaceObject;
|
||||
|
||||
import static com.threerings.crowd.Log.log;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: FrameTest.java,v 1.10 2004/08/27 02:20:57 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -88,6 +88,7 @@ public class FrameTest extends TestCase
|
||||
assertTrue("hit eof", fin.read() == -1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -87,6 +87,7 @@ public class StreamableTest extends TestCase
|
||||
_fizzle = in.readInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void toString (StringBuilder buf)
|
||||
{
|
||||
super.toString(buf);
|
||||
@@ -101,6 +102,7 @@ public class StreamableTest extends TestCase
|
||||
super(StreamableTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TestDecoder.java,v 1.2 2004/08/27 02:21:02 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -46,12 +46,14 @@ public class TestDecoder extends InvocationDecoder
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public String getReceiverCode ()
|
||||
{
|
||||
return RECEIVER_CODE;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void dispatchNotification (int methodId, Object[] args)
|
||||
{
|
||||
switch (methodId) {
|
||||
|
||||
@@ -24,7 +24,6 @@ package com.threerings.presents.data;
|
||||
import com.threerings.presents.client.Client;
|
||||
import com.threerings.presents.client.TestService;
|
||||
import com.threerings.presents.dobj.InvocationResponseEvent;
|
||||
import com.threerings.presents.net.Transport;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,6 +43,7 @@ public class DSetTest extends TestCase
|
||||
return _value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
return _value.toString();
|
||||
@@ -56,6 +57,7 @@ public class DSetTest extends TestCase
|
||||
super(DSetTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
ArrayList<TestEntry> seed = new ArrayList<TestEntry>();
|
||||
|
||||
@@ -23,7 +23,6 @@ package com.threerings.presents.server;
|
||||
|
||||
import com.threerings.presents.client.TestService;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
import com.threerings.presents.data.InvocationMarshaller;
|
||||
import com.threerings.presents.data.TestMarshaller;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
@@ -25,14 +25,13 @@ import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
|
||||
import com.threerings.presents.data.TestObject;
|
||||
import com.threerings.presents.dobj.*;
|
||||
|
||||
import static com.threerings.presents.Log.log;
|
||||
|
||||
public class TestServer extends PresentsServer
|
||||
{
|
||||
public static TestObject testobj;
|
||||
|
||||
@Override
|
||||
public void init (Injector injector)
|
||||
throws Exception
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MessageBundleTest.java,v 1.5 2004/08/27 02:21:05 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -36,6 +36,7 @@ public class MessageBundleTest extends TestCase
|
||||
super(MessageBundleTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user