Skip to content

Commit 764e022

Browse files
committed
Add default inspection profile and update test initialization in MainTest
1 parent 9ba9962 commit 764e022

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/java/fr/sandro642/github/test/MainTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ public void testLangType() {
176176

177177
@Test
178178
public void testProd() {
179+
connectLib.init(ResourceType.TEST_RESOURCES, LangType.ENGLISH, TestRoutes.class);
180+
179181
testSpecData();
180182

181183
pushsession();
@@ -185,8 +187,6 @@ public void testProd() {
185187
public void testSpecData() {
186188
try {
187189

188-
connectLib.init(ResourceType.MAIN_RESOURCES, LangType.ENGLISH, TestRoutes.class);
189-
190190
CompletableFuture<ApiFactory> apiFactoryCompletableFuture = connectLib.JobGetInfos()
191191
.getRoutes(TestCustomVersion.V1_API, MethodType.GET, TestRoutes.REQUEST_TOKEN)
192192
.urlBranch(ExampleUrlBranch.PROD)
@@ -219,7 +219,7 @@ public void pushsession() {
219219
.getRoutes(TestCustomVersion.V1_API, MethodType.POST, TestRoutes.SESSION_PUSH)
220220
.urlBranch(ExampleUrlBranch.PROD)
221221
.params(params)
222-
.getResponse();
222+
.execute();
223223

224224
ApiFactory apiFactory = apiFactoryCompletableFuture.get(5, TimeUnit.SECONDS);
225225

0 commit comments

Comments
 (0)