Skip to content

Commit d11b564

Browse files
committed
Update test services.
1 parent 2d90a7d commit d11b564

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

httprpc-test/src/main/java/org/httprpc/test/mongodb/RestaurantService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void getRestaurants(String zipCode, String format) throws IOException {
9595
templateEncoder.setBaseName(getClass().getPackage().getName() + ".restaurants");
9696
templateEncoder.write(cursorAdapter, getResponse().getOutputStream());
9797
} else {
98-
throw new UnsupportedOperationException();
98+
throw new IllegalArgumentException();
9999
}
100100
}
101101
}

httprpc-test/src/main/java/org/httprpc/test/mysql/PetService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void getPets(String owner, String format) throws SQLException, IOExceptio
118118
templateEncoder.setBaseName(getClass().getPackage().getName() + ".pets");
119119
templateEncoder.write(resultSetAdapter, getResponse().getOutputStream());
120120
} else {
121-
throw new UnsupportedOperationException();
121+
throw new IllegalArgumentException();
122122
}
123123
}
124124
}

httprpc-test/src/main/webapp/index.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<html>
44
<head>
5-
<title>HTTP-RPC Server</title>
5+
<title>HTTP-RPC Test</title>
66
</head>
77

88
<body>

0 commit comments

Comments
 (0)