fix broken UT

This commit is contained in:
Fangjin Yang 2012-11-30 13:17:14 -08:00
parent e1527a44d4
commit 91cd9e9536
2 changed files with 5 additions and 4 deletions

View File

@ -296,9 +296,10 @@ public class InfoResource
final List<Rule> rules final List<Rule> rules
) )
{ {
return Response.status(Response.Status.OK) if (databaseRuleCoordinator.overrideRule(dataSourceName, rules)) {
.entity(databaseRuleCoordinator.overrideRule(dataSourceName, rules)) return Response.status(Response.Status.OK).build();
.build(); }
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).build();
} }
@GET @GET

View File

@ -133,7 +133,7 @@ public class ZkCoordinatorTest
@Override @Override
public String getSubType() public String getSubType()
{ {
return null; return "normal";
} }
}, },
"dummyType" "dummyType"