Skip to content

Commit

Permalink
Refactor: Modify project struct
Browse files Browse the repository at this point in the history
Signed-off-by: IllTamer <78360471+IllTamer@users.noreply.github.com>
  • Loading branch information
IllTamer committed Nov 28, 2023
1 parent 6075e8e commit 53bdf86
Show file tree
Hide file tree
Showing 54 changed files with 272 additions and 21 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/sqldialects.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .gitignore → samples-java/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ HELP.md
.sts4-cache

### IntelliJ IDEA ###
.idea
../.idea
*.iws
*.iml
*.ipr
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions samples-java/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
</parent>
<groupId>org.example</groupId>
<artifactId>samples-java</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>springboot-jpa</module>
<module>springboot-mongodb</module>
</modules>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ mvn clean install -Dmaven.test.skip=true
`-javaagent:path of agent jar` like this 👇.


![Edit_configurations](/src/main/resources/Edit-configurations.png "Edit configurations")
![Edit_configurations](/Edit-configurations.png "Edit configurations")


## Generate testcases
Expand Down Expand Up @@ -165,7 +165,7 @@ or by querying through the browser `http://localhost:8080/api/employees/1`
Now both these API calls were captured as **editable** testcases and written to `test/e2e/keploy-tests` folder. The
keploy directory would also have `mocks` folder.

![testcases](/src/main/resources/test-cases.png "Recorded Test cases and mocks")
![testcases](/test-cases.png "Recorded Test cases and mocks")

Now, let's see the magic! 🪄💫

Expand Down Expand Up @@ -317,7 +317,7 @@ Hibernate: select employee0_.id as id1_0_0_, employee0_.email as email2_0_0_, em
2022-08-26 14:13:19.414 INFO 11560 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
```
![testruns](/src/main/resources/test-runs-success.png "Recent testruns")
![testruns](/test-runs-success.png "Recent testruns")
## Let's add a Bug in the App
Expand Down Expand Up @@ -345,7 +345,7 @@ You'll notice the failed test-case in the output.
To deep dive the problem go to [test runs](http://localhost:6789/testruns)
![testruns](/src/main/resources/test-runs-fail.png "Recent testruns")
![testruns](/test-runs-fail.png "Recent testruns")
**In case of any query, refer to video below,**
Expand Down
File renamed without changes.
13 changes: 3 additions & 10 deletions springboot-jpa/pom.xml → samples-java/springboot-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<relativePath/> <!-- lookup parent from repository -->
<groupId>org.example</groupId>
<artifactId>samples-java</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.example</groupId>
<artifactId>springboot-jpa</artifactId>
<version>1.0-SNAPSHOT</version>
<name>springboot-jpa</name>
Expand Down Expand Up @@ -47,12 +45,10 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
Expand All @@ -63,13 +59,11 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>com.newrelic.agent.java</groupId>
Expand Down Expand Up @@ -104,7 +98,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${project.parent.version}</version>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ mvn clean install -Dmaven.test.skip=true
`-javaagent:path of agent jar` like this 👇.


![Edit_configurations](/src/main/resources/Edit-configurations.png "Edit configurations")
![Edit_configurations](/Edit-configurations.png "Edit configurations")


## Generate testcases
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<relativePath/> <!-- lookup parent from repository -->
<groupId>org.example</groupId>
<artifactId>samples-java</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.example</groupId>
<artifactId>springboot-mongodb</artifactId>
<version>1.0-SNAPSHOT</version>
<name>springboot-mongodb</name>
Expand Down

0 comments on commit 53bdf86

Please sign in to comment.