more specific exceptions in test

This commit is contained in:
Fangjin Yang 2012-12-12 14:51:19 -08:00
parent cd38b5ba24
commit 6db99c45a6
1 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ public class QueriesTest
try {
Queries.verifyAggregations(aggFactories, postAggs);
}
catch (Exception e) {
catch (IllegalArgumentException e) {
exceptionOccured = true;
}
@ -74,7 +74,7 @@ public class QueriesTest
try {
Queries.verifyAggregations(aggFactories, postAggs);
}
catch (Exception e) {
catch (IllegalArgumentException e) {
exceptionOccured = true;
}
@ -128,7 +128,7 @@ public class QueriesTest
try {
Queries.verifyAggregations(aggFactories, postAggs);
}
catch (Exception e) {
catch (IllegalArgumentException e) {
exceptionOccured = true;
}
@ -182,7 +182,7 @@ public class QueriesTest
try {
Queries.verifyAggregations(aggFactories, postAggs);
}
catch (Exception e) {
catch (IllegalArgumentException e) {
exceptionOccured = true;
}