Skip to content

Commit

Permalink
#Tests: Fix GridCacheCommandHandlerSelfTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivasilinets committed Jan 30, 2015
1 parent 0331e7b commit 8b57933
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -75,7 +75,7 @@ public GridCacheCommandHandlerSelfTest() {
* @throws Exception If failed.
*/
public void testCacheGetFailsSyncNotify() throws Exception {
GridRestCommandHandler hnd = new TestableGridCacheCommandHandler(((IgniteKernal)grid()).context(), "getAsync",
GridRestCommandHandler hnd = new TestableCacheCommandHandler(((IgniteKernal)grid()).context(), "getAsync",
true);

GridRestCacheRequest req = new GridRestCacheRequest();
Expand All @@ -100,7 +100,7 @@ public void testCacheGetFailsSyncNotify() throws Exception {
* @throws Exception If failed.
*/
public void testCacheGetFailsAsyncNotify() throws Exception {
GridRestCommandHandler hnd = new TestableGridCacheCommandHandler(((IgniteKernal)grid()).context(), "getAsync",
GridRestCommandHandler hnd = new TestableCacheCommandHandler(((IgniteKernal)grid()).context(), "getAsync",
false);

GridRestCacheRequest req = new GridRestCacheRequest();
Expand Down Expand Up @@ -207,7 +207,7 @@ private <T> T testAppend(T curVal, T newVal, boolean append) throws IgniteChecke
/**
* Test command handler.
*/
private static class TestableGridCacheCommandHandler extends GridCacheCommandHandler {
private static class TestableCacheCommandHandler extends GridCacheCommandHandler {
/** */
private final String failMtd;

Expand All @@ -221,7 +221,7 @@ private static class TestableGridCacheCommandHandler extends GridCacheCommandHan
* @param failMtd Method to fail.
* @param sync Sync notification flag.
*/
TestableGridCacheCommandHandler(final GridKernalContext ctx, final String failMtd, final boolean sync) {
TestableCacheCommandHandler(final GridKernalContext ctx, final String failMtd, final boolean sync) {
super(ctx);

this.failMtd = failMtd;
Expand Down Expand Up @@ -249,7 +249,7 @@ private static class TestableGridCacheCommandHandler extends GridCacheCommandHan
return fut;
}
// Rewriting flagOn result to keep intercepting invocations after it.
else if ("flagOn".equals(mtd.getName()))
else if ("flagsOn".equals(mtd.getName()))
return proxy;
else if ("forSubjectId".equals(mtd.getName()))
return proxy;
Expand Down

0 comments on commit 8b57933

Please sign in to comment.