Skip to content

Commit 6ecff1e

Browse files
authored
Merge pull request #187 from xzhong66/DeleteMethodSignature
Change method signature
2 parents ff9ab96 + 9291e5d commit 6ecff1e

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/MyMethodInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public MyMethodInterceptor() {
6666
}
6767

6868
@RuntimeType
69-
public Object intercept(@This Object proxyObject, @Origin Method method, @AllArguments Object[] methodArgs, @SuperMethod(nullIfImpossible = true) Method superMethod) throws FMSException, InstantiationException, IllegalAccessException {
69+
public Object intercept(@This Object proxyObject, @Origin Method method, @AllArguments Object[] methodArgs, @SuperMethod(nullIfImpossible = true) Method superMethod) throws FMSException {
7070

7171
if (GenerateQuery.path.get() == null) {
7272
GenerateQuery.path.set(new Path<Object>(extractPropertyName(method), extractEntity(proxyObject)));
@@ -112,7 +112,7 @@ protected String extractPropertyName(Method method) {
112112
*/
113113
@SuppressWarnings("unchecked")
114114
public <T> T createInstance(Object proxyObject, Method method, Object[] methodArgs, Method superMethod)
115-
throws FMSException, InstantiationException, IllegalAccessException {
115+
throws FMSException {
116116
Object obj = null;
117117
Class<?> type = method.getReturnType();
118118
if (String.class.equals(type)) {

ipp-v3-java-devkit/src/test/java/com/intuit/ipp/query/QueryTest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void setCalendar() {
5555
}
5656

5757
@Test
58-
public void testQuery_datatypes() throws InstantiationException, IllegalAccessException {
58+
public void testQuery_datatypes() {
5959
Data data = GenerateQuery.createQueryEntity(new Data());
6060
String query = select($(data.getStringData()), $(data.getIntData()), $(data.getByteData()), $(data.getShortData()), $(data.getLongData()),
6161
$(data.getFloatData()), $(data.getDoubleData()), $(data.getCalendarData()), $(data.isBooleanData()), $(data.getDateData()),
@@ -69,7 +69,7 @@ public void testQuery_datatypes() throws InstantiationException, IllegalAccessEx
6969
}
7070

7171
@Test
72-
public void testQuery_eq() throws InstantiationException, IllegalAccessException {
72+
public void testQuery_eq() {
7373
Data data = GenerateQuery.createQueryEntity(Data.class);
7474
String query = select($(data)).where($(data.getStringData()).eq("StringValue"), $(data.getIntData()).eq(10),
7575
$(data.getByteData()).eq((byte) 10), $(data.getShortData()).eq((short) 10), $(data.getLongData()).eq((long) 10),
@@ -82,7 +82,7 @@ public void testQuery_eq() throws InstantiationException, IllegalAccessException
8282
}
8383

8484
@Test
85-
public void testQuery_eqUsingInvalidEnum() throws InstantiationException, IllegalAccessException {
85+
public void testQuery_eqUsingInvalidEnum() {
8686
Data data = GenerateQuery.createQueryEntity(Data.class);
8787
String query = select($(data)).where($(data.getStringData()).eq("StringValue"), $(data.getIntData()).eq(10),
8888
$(data.getByteData()).eq((byte) 10), $(data.getShortData()).eq((short) 10), $(data.getLongData()).eq((long) 10),
@@ -95,7 +95,7 @@ public void testQuery_eqUsingInvalidEnum() throws InstantiationException, Illega
9595
}
9696

9797
@Test
98-
public void testQuery_neq() throws InstantiationException, IllegalAccessException {
98+
public void testQuery_neq() {
9999
Data data = GenerateQuery.createQueryEntity(Data.class);
100100
String query = select($(data))
101101
.where($(data.getStringData()).neq("StringValue"), $(data.getIntData()).neq(10), $(data.getByteData()).neq((byte) 10),
@@ -108,7 +108,7 @@ public void testQuery_neq() throws InstantiationException, IllegalAccessExceptio
108108
}
109109

110110
@Test
111-
public void testQuery_lt() throws InstantiationException, IllegalAccessException {
111+
public void testQuery_lt() {
112112
Data data = GenerateQuery.createQueryEntity(Data.class);
113113
String query = select($(data)).where($(data.getStringData()).lt("StringValue"), $(data.getIntData()).lt(10),
114114
$(data.getByteData()).lt((byte) 10), $(data.getShortData()).lt((short) 10), $(data.getLongData()).lt((long) 10),
@@ -120,7 +120,7 @@ public void testQuery_lt() throws InstantiationException, IllegalAccessException
120120
}
121121

122122
@Test
123-
public void testQuery_lte() throws InstantiationException, IllegalAccessException {
123+
public void testQuery_lte() {
124124
Data data = GenerateQuery.createQueryEntity(Data.class);
125125
String query = select($(data)).where($(data.getStringData()).lte("StringValue"), $(data.getIntData()).lte(10),
126126
$(data.getByteData()).lte((byte) 10), $(data.getShortData()).lte((short) 10), $(data.getLongData()).lte((long) 10),
@@ -132,7 +132,7 @@ public void testQuery_lte() throws InstantiationException, IllegalAccessExceptio
132132
}
133133

134134
@Test
135-
public void testQuery_gt() throws InstantiationException, IllegalAccessException {
135+
public void testQuery_gt() {
136136
Data data = GenerateQuery.createQueryEntity(Data.class);
137137
String query = select($(data)).where($(data.getStringData()).gt("StringValue"), $(data.getIntData()).gt(10),
138138
$(data.getByteData()).gt((byte) 10), $(data.getShortData()).gt((short) 10), $(data.getLongData()).gt((long) 10),
@@ -144,7 +144,7 @@ public void testQuery_gt() throws InstantiationException, IllegalAccessException
144144
}
145145

146146
@Test
147-
public void testQuery_gte() throws InstantiationException, IllegalAccessException {
147+
public void testQuery_gte() {
148148
Data data = GenerateQuery.createQueryEntity(Data.class);
149149
String query = select($(data)).where($(data.getStringData()).gte("StringValue"), $(data.getIntData()).gte(10),
150150
$(data.getByteData()).gte((byte) 10), $(data.getShortData()).gte((short) 10), $(data.getLongData()).gte((long) 10),
@@ -156,7 +156,7 @@ public void testQuery_gte() throws InstantiationException, IllegalAccessExceptio
156156
}
157157

158158
@Test
159-
public void testQuery_in() throws InstantiationException, IllegalAccessException {
159+
public void testQuery_in() {
160160
Data data = GenerateQuery.createQueryEntity(Data.class);
161161
String query = select($(data)).where($(data.getStringData()).in(new String[] { "StringValue1", "StringValue2" }),
162162
$(data.getIntData()).in(new Integer[] { 10, 20 }), $(data.getByteData()).in(new Byte[] { 10, 20 }),
@@ -171,7 +171,7 @@ public void testQuery_in() throws InstantiationException, IllegalAccessException
171171
}
172172

173173
@Test
174-
public void testQuery_between() throws InstantiationException, IllegalAccessException {
174+
public void testQuery_between() {
175175
Data data = GenerateQuery.createQueryEntity(Data.class);
176176
String query = select($(data)).where(
177177
$(data.getStringData()).between("StringValue1", "StringValue2"),
@@ -190,7 +190,7 @@ public void testQuery_between() throws InstantiationException, IllegalAccessExce
190190
}
191191

192192
@Test
193-
public void testQuery_like() throws InstantiationException, IllegalAccessException {
193+
public void testQuery_like() {
194194
Data data = GenerateQuery.createQueryEntity(Data.class);
195195
String query = select($(data)).where($(data.getStringData()).startsWith("StringValue")).generate();
196196
String expectedQuery = "SELECT * FROM Data WHERE StringData LIKE 'StringValue%'";
@@ -209,7 +209,7 @@ public void testQuery_like() throws InstantiationException, IllegalAccessExcepti
209209
}
210210

211211
@Test
212-
public void testQuery_select() throws InstantiationException, IllegalAccessException {
212+
public void testQuery_select() {
213213
Data data = GenerateQuery.createQueryEntity(Data.class);
214214
String query = select($(data.getSubData())).generate();
215215
String expectedQuery = "SELECT SubData.* FROM Data";
@@ -218,7 +218,7 @@ public void testQuery_select() throws InstantiationException, IllegalAccessExcep
218218
}
219219

220220
@Test
221-
public void testQuery_orderby() throws InstantiationException, IllegalAccessException {
221+
public void testQuery_orderby() {
222222
Data data = GenerateQuery.createQueryEntity(Data.class);
223223
String query = select($(data)).orderByAscending($(data.getStringData()), $(data.getIntData())).generate();
224224
String expectedQuery = "SELECT * FROM Data ORDERBY StringData, IntData ASC";
@@ -234,7 +234,7 @@ public void testQuery_orderby() throws InstantiationException, IllegalAccessExce
234234
}
235235

236236
@Test
237-
public void testQuery_not() throws InstantiationException, IllegalAccessException {
237+
public void testQuery_not() {
238238
Data data = GenerateQuery.createQueryEntity(Data.class);
239239
String query = select($(data)).where($(data.getIntData()).eq(10).negate()).generate();
240240
String expectedQuery = "SELECT * FROM Data WHERE NOT IntData = '10'";
@@ -243,7 +243,7 @@ public void testQuery_not() throws InstantiationException, IllegalAccessExceptio
243243
}
244244

245245
@Test
246-
public void testQuery_pagination() throws InstantiationException, IllegalAccessException {
246+
public void testQuery_pagination() {
247247
Data data = GenerateQuery.createQueryEntity(Data.class);
248248
String query = select($(data)).skip(10).generate();
249249
String expectedQuery = "SELECT * FROM Data STARTPOSITION 11";
@@ -262,7 +262,7 @@ public void testQuery_pagination() throws InstantiationException, IllegalAccessE
262262
}
263263

264264
@Test
265-
public void testQuery_count() throws InstantiationException, IllegalAccessException {
265+
public void testQuery_count() {
266266
Data data = GenerateQuery.createQueryEntity(Data.class);
267267
String query = selectCount(data).generate();
268268
String expectedQuery = "SELECT count(*) FROM Data";
@@ -271,7 +271,7 @@ public void testQuery_count() throws InstantiationException, IllegalAccessExcept
271271
}
272272

273273
@Test
274-
public void testQuery_calendar() throws InstantiationException, IllegalAccessException {
274+
public void testQuery_calendar() {
275275
Data data = GenerateQuery.createQueryEntity(Data.class);
276276

277277
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
@@ -292,7 +292,7 @@ public void testQuery_calendar() throws InstantiationException, IllegalAccessExc
292292
}
293293

294294
@Test
295-
public void testQuery_line() throws InstantiationException, IllegalAccessException {
295+
public void testQuery_line() {
296296
Invoice data = GenerateQuery.createQueryEntity(Invoice.class);
297297
String query = select($(data.getLine())).generate();
298298
String expectedQuery = "SELECT Line.* FROM Invoice";

0 commit comments

Comments
 (0)