Brought things back up to date; pruned imports; made Eclipse suggested
cleanups. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2972 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
//
|
||||
// $Id: DOMTest.java,v 1.9 2002/04/15 16:34:36 shaper Exp $
|
||||
// $Id: DOMTest.java,v 1.10 2004/02/25 14:51:26 mdb Exp $
|
||||
|
||||
package com.threerings.presents.server;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import com.samskivert.util.StringUtil;
|
||||
|
||||
import com.threerings.presents.Log;
|
||||
import com.threerings.presents.dobj.*;
|
||||
|
||||
/**
|
||||
@@ -52,7 +49,7 @@ public class DOMTest extends TestCase
|
||||
public void requestFailed (int oid, ObjectAccessException cause)
|
||||
{
|
||||
fail("Request failed: " + cause);
|
||||
_omgr.shutdown();
|
||||
_omgr.harshShutdown();
|
||||
}
|
||||
|
||||
public void attributeChanged (AttributeChangedEvent event)
|
||||
@@ -63,7 +60,7 @@ public class DOMTest extends TestCase
|
||||
|
||||
// shutdown once we receive our last update
|
||||
if (++_fcount == fields.length) {
|
||||
_omgr.shutdown();
|
||||
_omgr.harshShutdown();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DestroyedRefTest.java,v 1.8 2002/04/15 16:34:36 shaper Exp $
|
||||
// $Id: DestroyedRefTest.java,v 1.9 2004/02/25 14:51:26 mdb Exp $
|
||||
|
||||
package com.threerings.presents.server;
|
||||
|
||||
@@ -71,7 +71,7 @@ public class DestroyedRefTest
|
||||
|
||||
} else if (event instanceof AttributeChangedEvent) {
|
||||
// go bye bye
|
||||
_omgr.shutdown();
|
||||
_omgr.harshShutdown();
|
||||
|
||||
} else {
|
||||
fail("Got unexpected event: " + event);
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
//
|
||||
// $Id: RefTest.java,v 1.8 2002/04/15 16:34:36 shaper Exp $
|
||||
// $Id: RefTest.java,v 1.9 2004/02/25 14:51:26 mdb Exp $
|
||||
|
||||
package com.threerings.presents.server;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import com.threerings.presents.Log;
|
||||
import com.threerings.presents.dobj.*;
|
||||
|
||||
/**
|
||||
@@ -63,7 +62,7 @@ public class RefTest
|
||||
} else {
|
||||
// Log.info("Other object destroyed.");
|
||||
// go bye bye
|
||||
_omgr.shutdown();
|
||||
_omgr.harshShutdown();
|
||||
}
|
||||
|
||||
} else if (event instanceof ObjectRemovedEvent) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TestObject.java,v 1.3 2002/03/19 01:10:03 mdb Exp $
|
||||
// $Id: TestObject.java,v 1.4 2004/02/25 14:51:26 mdb Exp $
|
||||
|
||||
package com.threerings.presents.server;
|
||||
|
||||
@@ -41,8 +41,8 @@ public class TestObject extends DObject
|
||||
*/
|
||||
public void setFoo (int foo)
|
||||
{
|
||||
this.foo = foo;
|
||||
requestAttributeChange(FOO, new Integer(foo));
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,8 +55,8 @@ public class TestObject extends DObject
|
||||
*/
|
||||
public void setBar (String bar)
|
||||
{
|
||||
this.bar = bar;
|
||||
requestAttributeChange(BAR, bar);
|
||||
this.bar = bar;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,8 +69,8 @@ public class TestObject extends DObject
|
||||
*/
|
||||
public void setInts (int[] ints)
|
||||
{
|
||||
this.ints = ints;
|
||||
requestAttributeChange(INTS, ints);
|
||||
this.ints = ints;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,8 +83,8 @@ public class TestObject extends DObject
|
||||
*/
|
||||
public void setIntsAt (int value, int index)
|
||||
{
|
||||
this.ints[index] = value;
|
||||
requestElementUpdate(INTS, new Integer(value), index);
|
||||
this.ints[index] = value;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,8 +97,8 @@ public class TestObject extends DObject
|
||||
*/
|
||||
public void setStrings (String[] strings)
|
||||
{
|
||||
this.strings = strings;
|
||||
requestAttributeChange(STRINGS, strings);
|
||||
this.strings = strings;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,8 +111,8 @@ public class TestObject extends DObject
|
||||
*/
|
||||
public void setStringsAt (String value, int index)
|
||||
{
|
||||
this.strings[index] = value;
|
||||
requestElementUpdate(STRINGS, value, index);
|
||||
this.strings[index] = value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user