Skip to content

Commit

Permalink
removed some semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
purplefox committed Apr 12, 2012
1 parent 95bd1b2 commit cf51c8e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions src/tests/groovy/core/buffer/testClient.groovy
Expand Up @@ -31,23 +31,23 @@ def testPutAtGetAtByte() {

def testPutAtInt() {
def buff = new Buffer()
def i = 1233;
def i = 1233
buff[10] = i
tu.azzert(buff.getInt(10) == i)
tu.testComplete()
}

def testPutAtLong() {
def buff = new Buffer()
def l = 1233l;
def l = 1233l
buff[10] = l
tu.azzert(buff.getLong(10) == l)
tu.testComplete()
}

def testPutAtShort() {
def buff = new Buffer()
def s = (short)123;
def s = (short)123
buff[10] = s
tu.azzert(buff.getShort(10) == s)
tu.testComplete()
Expand Down
34 changes: 17 additions & 17 deletions src/tests/groovy/core/eventbus/testClient.groovy
Expand Up @@ -68,7 +68,7 @@ def testSimple() {

def testEmptyMessage() {

def handled = false;
def handled = false
eb.registerHandler(address, myHandler = { msg ->
tu.checkContext()
tu.azzert(!handled)
Expand All @@ -77,35 +77,35 @@ def testEmptyMessage() {
tu.testComplete()
})

eb.send(address, emptySent);
eb.send(address, emptySent)
}


def testUnregister() {

def handled = false;
def handled = false
eb.registerHandler(address, myHandler = { msg ->
tu.checkContext()
tu.azzert(!handled)
assertSent(msg.body)
eb.unregisterHandler(address, myHandler)
// Unregister again - should do nothing
eb.unregisterHandler(address, myHandler)
handled = true;
handled = true
// Wait a little while to allow any other messages to arrive
vertx.setTimer(100, {
tu.testComplete();
tu.testComplete()
})
})

2.times {
eb.send(address, sent);
eb.send(address, sent)
}
}

def testWithReply() {

def handled = false;
def handled = false
eb.registerHandler(address, myHandler = { msg ->
tu.checkContext()
tu.azzert(!handled)
Expand Down Expand Up @@ -136,15 +136,15 @@ def testReplyOfReplyOfReply() {
eb.send(address, "message", { reply->
tu.azzert("reply" == reply.body)
reply.reply("reply-of-reply", { replyReply ->
tu.azzert("reply-of-reply-of-reply" == replyReply.body);
tu.testComplete();
tu.azzert("reply-of-reply-of-reply" == replyReply.body)
tu.testComplete()
})
})
}

def testEmptyReply() {

def handled = false;
def handled = false
eb.registerHandler(address, myHandler = { msg ->
tu.checkContext()
tu.azzert(!handled)
Expand All @@ -162,31 +162,31 @@ def testEmptyReply() {
}

def testEchoString() {
echo("foo");
echo("foo")
}

def testEchoNumber1() {
echo(1234);
echo(1234)
}

def testEchoNumber2() {
echo(1.2345);
echo(1.2345)
}

def testEchoBooleanTrue() {
echo(true);
echo(true)
}

def testEchoBooleanFalse() {
echo(false);
echo(false)
}

def testEchoJson() {
echo(sent);
echo(sent)
}

def testEchoNull() {
echo(null);
echo(null)
}


Expand Down
8 changes: 4 additions & 4 deletions src/tests/groovy/core/filesystem/testClient.groovy
Expand Up @@ -58,7 +58,7 @@ def testMove() {
tu.azzert(ares3.exception == null)
tu.azzert(!ares.result)
tu.testComplete()
});
})
})
})
})
Expand Down Expand Up @@ -114,7 +114,7 @@ def testPumpFile() {
tu.azzert(ares3.exception == null)
tu.azzert(tu.buffersEqual(content, ares3.result))
tu.testComplete()
});
})
}
}
}
Expand All @@ -136,7 +136,7 @@ def setup(doneHandler) {
doneHandler()
})
}
});
})
}

def teardown(doneHandler) {
Expand All @@ -145,7 +145,7 @@ def teardown(doneHandler) {
})
}

tu.registerTests(this);
tu.registerTests(this)

setup({ tu.appReady() })

Expand Down
2 changes: 1 addition & 1 deletion src/tests/groovy/core/http/testClient.groovy
Expand Up @@ -185,7 +185,7 @@ def httpMethod(ssl, method, chunked) {

path = "/someurl/blah.html"
query = "param1=vparam1&param2=vparam2"
uri = "http://localhost:8080" + path + "?" + query;
uri = "http://localhost:8080" + path + "?" + query

server.requestHandler { req ->
tu.checkContext()
Expand Down
4 changes: 2 additions & 2 deletions src/tests/groovy/core/isolation/testclient.groovy
Expand Up @@ -11,8 +11,8 @@ class CounterHolder {
}

void testIsolation() {
tu.azzert(CounterHolder.counter.incrementAndGet() == 1);
tu.testComplete();
tu.azzert(CounterHolder.counter.incrementAndGet() == 1)
tu.testComplete()
}

tu.registerTests(this)
Expand Down

0 comments on commit cf51c8e

Please sign in to comment.