Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b50a3eb

Browse filesBrowse files
authored
Merge pull request #104 from AuthorizeNet/future-alternate
Future alternate
2 parents 2b592cb + 49e50bb commit b50a3eb
Copy full SHA for b50a3eb

File tree

Expand file treeCollapse file tree

2 files changed

+9
-18
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-18
lines changed

‎pom.xml

Copy file name to clipboardExpand all lines: pom.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>net.authorize</groupId>
1616
<artifactId>anet-java-sdk</artifactId>
17-
<version>2.0.5</version>
17+
<version>3.0.0</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>junit</groupId>
@@ -28,8 +28,8 @@
2828
<artifactId>maven-compiler-plugin</artifactId>
2929
<version>3.7.0</version>
3030
<configuration>
31-
<source>1.7</source>
32-
<target>1.7</target>
31+
<source>9</source>
32+
<target>9</target>
3333
</configuration>
3434
</plugin>
3535
<plugin>

‎src/test/java/net/authorize/sample/SampleCodeTest/TestRunner.java

Copy file name to clipboardExpand all lines: src/test/java/net/authorize/sample/SampleCodeTest/TestRunner.java
+6-15Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public ANetApiResponse InvokeRunMethod(String className)
183183
{
184184
String fqClassName = "net.authorize.sample." + className;
185185

186-
Class classType = null;
186+
Class<?> classType = null;
187187
try {
188188
classType = Class.forName(fqClassName);
189189
} catch (ClassNotFoundException e1) {
@@ -193,28 +193,19 @@ public ANetApiResponse InvokeRunMethod(String className)
193193

194194
Method runMethod = null;
195195
try {
196-
runMethod = classType.getMethod("run",String.class, String.class);
197-
} catch (NoSuchMethodException e1) {
198-
// TODO Auto-generated catch block
199-
e1.printStackTrace();
200-
} catch (SecurityException e1) {
196+
runMethod = classType.getMethod("run", String.class, String.class);
197+
} catch (NoSuchMethodException | SecurityException e1) {
201198
// TODO Auto-generated catch block
202199
e1.printStackTrace();
203200
}
204201

205-
try {
202+
try {
206203
return (ANetApiResponse)runMethod.invoke(null, Constants.API_LOGIN_ID, Constants.TRANSACTION_KEY);
207-
} catch (IllegalAccessException e) {
208-
// TODO Auto-generated catch block
209-
e.printStackTrace();
210-
} catch (IllegalArgumentException e) {
211-
// TODO Auto-generated catch block
212-
e.printStackTrace();
213-
} catch (InvocationTargetException e) {
204+
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
214205
// TODO Auto-generated catch block
215206
e.printStackTrace();
216207
}
217-
return null;
208+
return null;
218209
}
219210

220211
public ANetApiResponse TestValidateCustomerPaymentProfile()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.