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
)
{
return Response.status(Response.Status.OK)
.entity(databaseRuleCoordinator.overrideRule(dataSourceName, rules))
.build();
if (databaseRuleCoordinator.overrideRule(dataSourceName, rules)) {
return Response.status(Response.Status.OK).build();
}
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).build();
}
@GET

View File

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