Skip to content

Commit 0d93451

Browse files
committed
refactor: update changes for compatibility with newer sdk version
Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
1 parent 4753101 commit 0d93451

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>io.keploy</groupId>
4242
<artifactId>keploy-sdk</artifactId>
43-
<version>1.0.13</version>
43+
<version>1.1.1</version>
4444
</dependency>
4545

4646

src/main/java/com/example/demo/SamplesJavaApplication.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.example.demo;
22

3+
import io.keploy.servlet.KeployMiddleware;
34
import org.springframework.boot.SpringApplication;
45
import org.springframework.boot.autoconfigure.SpringBootApplication;
6+
import org.springframework.context.annotation.Import;
57

6-
@SpringBootApplication(scanBasePackages = {"com.example.demo", "io.keploy.servlet"})
7-
//@SpringBootApplication
8+
@SpringBootApplication
9+
@Import(KeployMiddleware.class)
810
public class SamplesJavaApplication {
911
public static void main(String[] args) {
1012
SpringApplication.run(SamplesJavaApplication.class, args);

src/test/java/SamplesJavaApplication_Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import com.example.demo.SamplesJavaApplication;
2-
import io.keploy.regression.mode;
2+
import io.keploy.regression.Mode;
33
import io.keploy.utils.HaltThread;
44
import org.junit.jupiter.api.Test;
55

@@ -11,7 +11,7 @@ public class SamplesJavaApplication_Test {
1111
public void TestKeploy() throws InterruptedException {
1212

1313
CountDownLatch countDownLatch = HaltThread.getInstance().getCountDownLatch();
14-
mode.setTestMode();
14+
Mode.setTestMode();
1515

1616
new Thread(() -> {
1717
SamplesJavaApplication.main(new String[]{""});

0 commit comments

Comments
 (0)