Skip to content
Open

Uat #50

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
1f9764d
adding cicd.yml file
ashishrlad Jun 25, 2025
603fa55
changes in yml file
ashishrlad Jun 25, 2025
aa6263a
pom.xml
ashishrlad Jun 25, 2025
705c189
yml updated
ashishrlad Jun 25, 2025
a938769
yml updated
ashishrlad Jun 25, 2025
f215803
yml updated
ashishrlad Jun 25, 2025
6fb11d4
Update Dockerfile
ashishrlad Jun 26, 2025
750e125
changes in .ymlfile
ashishrlad Jun 26, 2025
010a23a
changes in .ymlfile
ashishrlad Jun 26, 2025
5949b1d
changes in .ymlfile
ashishrlad Jun 26, 2025
2f67d49
changes in .ymlfile
ashishrlad Jun 26, 2025
11cfa5c
changes in .ymlfile
ashishrlad Jun 26, 2025
db7e7df
changes in .ymlfile
ashishrlad Jun 26, 2025
e4ee1f2
changes in .ymlfile
ashishrlad Jun 26, 2025
45539e8
changes in .ymlfile
ashishrlad Jun 26, 2025
750b473
changes in .ymlfile
ashishrlad Jun 26, 2025
773d38e
changes in .ymlfile
ashishrlad Jun 26, 2025
9faf208
changes in .ymlfile
ashishrlad Jun 26, 2025
838b3b0
changes in .ymlfile
ashishrlad Jun 26, 2025
08bf652
changes in .ymlfile
ashishrlad Jun 26, 2025
40f0a18
changes in .ymlfile
ashishrlad Jun 26, 2025
a14613f
changes in .ymlfile
ashishrlad Jun 26, 2025
28c42e3
changes in .ymlfile
ashishrlad Jun 26, 2025
226f742
changes in .ymlfile
ashishrlad Jun 26, 2025
dc381b8
changes in .ymlfile
ashishrlad Jun 26, 2025
399962a
changes in .ymlfile
ashishrlad Jun 26, 2025
ef7e69b
changes in .ymlfile
ashishrlad Jun 26, 2025
9261f56
changes in .ymlfile
ashishrlad Jun 26, 2025
f8a53bc
changes in .ymlfile
ashishrlad Jun 26, 2025
0a32a49
changes in .ymlfile
ashishrlad Jun 26, 2025
a73a00a
changes in .ymlfile
ashishrlad Jun 26, 2025
1aad6d0
changes in .ymlfile
ashishrlad Jun 26, 2025
7ecc29a
changes in .ymlfile
ashishrlad Jun 26, 2025
51db62e
changes in .ymlfile
ashishrlad Jun 26, 2025
dd28165
changes in .ymlfile
ashishrlad Jun 26, 2025
d368cfb
changes in .ymlfile
ashishrlad Jun 26, 2025
4d40141
changes in .ymlfile
ashishrlad Jun 26, 2025
9a123f3
changes in .ymlfile
ashishrlad Jun 26, 2025
75a4065
changes in .ymlfile
ashishrlad Jun 26, 2025
9591047
changes in .ymlfile
ashishrlad Jun 26, 2025
a221577
changes in .ymlfile
ashishrlad Jun 26, 2025
e13c035
changes in .ymlfile
ashishrlad Jun 26, 2025
aefc42f
changes in .ymlfile
ashishrlad Jun 26, 2025
d28b7d7
changes in .ymlfile
ashishrlad Jun 26, 2025
8b65e4e
changes in .ymlfile
ashishrlad Jun 26, 2025
04de42a
changes in .ymlfile
ashishrlad Jun 26, 2025
a6442a9
changes in .ymlfile
ashishrlad Jun 26, 2025
16a365e
changes in .ymlfile
ashishrlad Jun 26, 2025
ff6c367
changes in .ymlfile
ashishrlad Jun 26, 2025
e575f34
changes in .ymlfile
ashishrlad Jun 26, 2025
7b04637
changes in .ymlfile
ashishrlad Jun 26, 2025
8d0be85
changes in .ymlfile
ashishrlad Jun 26, 2025
e6d2333
changes in .ymlfile
ashishrlad Jun 26, 2025
b84d2dc
changes in .ymlfile
ashishrlad Jun 26, 2025
27faf16
changes in .ymlfile
ashishrlad Jun 26, 2025
c425719
changes in .ymlfile
ashishrlad Jun 26, 2025
4e064ba
changes in .ymlfile
ashishrlad Jun 26, 2025
b89b537
changes in .ymlfile
ashishrlad Jun 26, 2025
c5f2d2f
changes in .ymlfile
ashishrlad Jun 26, 2025
039153d
changes in .ymlfile
ashishrlad Jun 26, 2025
d418057
changes in .ymlfile
ashishrlad Jun 26, 2025
0e1740c
changes in .ymlfile
ashishrlad Jun 26, 2025
5e23876
changes in .ymlfile
ashishrlad Jun 26, 2025
bbe3888
Update web.xml
ashishrlad Jun 26, 2025
3b11881
changes in .ymlfile
ashishrlad Jun 26, 2025
22c7cb2
changes in .ymlfile
ashishrlad Jun 26, 2025
8b32e2d
changes in .ymlfile
ashishrlad Jun 26, 2025
c2c3401
changes in .ymlfile
ashishrlad Jun 26, 2025
b376cc2
changes in .ymlfile
ashishrlad Jun 26, 2025
3542fd8
changes in .ymlfile
ashishrlad Jun 26, 2025
e11db5a
changes in .ymlfile
ashishrlad Jun 26, 2025
1bfda57
changes in .ymlfile
ashishrlad Jun 26, 2025
85bd65c
changes in .ymlfile
ashishrlad Jun 26, 2025
2cfa2ad
changes in .ymlfile
ashishrlad Jun 26, 2025
241c387
changes in .ymlfile
ashishrlad Jun 26, 2025
51782f3
changes in .ymlfile
ashishrlad Jun 26, 2025
d002581
changes in .ymlfile
ashishrlad Jun 26, 2025
de43326
changes in .ymlfile
ashishrlad Jun 26, 2025
0a0569b
changes in .ymlfile
ashishrlad Jun 26, 2025
7669731
changes in .ymlfile
ashishrlad Jun 26, 2025
65b9640
changes in .ymlfile
ashishrlad Jun 26, 2025
d6adede
changes in .ymlfile
ashishrlad Jun 26, 2025
3004a99
changes in .ymlfile
ashishrlad Jun 26, 2025
639aac8
changes in .ymlfile
ashishrlad Jun 26, 2025
052d6e7
changes in .ymlfile
ashishrlad Jun 26, 2025
35ea6d1
changes in .ymlfile
ashishrlad Jun 26, 2025
000366b
changes in .ymlfile
ashishrlad Jun 26, 2025
97b6d4d
changes in .ymlfile
ashishrlad Jun 26, 2025
81fd3e9
changes in .ymlfile
ashishrlad Jun 26, 2025
ec97afd
changes in .ymlfile
ashishrlad Jun 26, 2025
632de06
changes in .ymlfile
ashishrlad Jun 26, 2025
3d1aa68
changes in .ymlfile
ashishrlad Jun 26, 2025
c97f222
changes in .ymlfile
ashishrlad Jun 26, 2025
b6e0c10
changes in .ymlfile
ashishrlad Jun 26, 2025
ffbeb50
changes in .ymlfile
ashishrlad Jun 26, 2025
97c6612
changes in .ymlfile
ashishrlad Jun 26, 2025
03c55fb
changes in .ymlfile
ashishrlad Jun 26, 2025
92e8613
changes in .ymlfile
ashishrlad Jun 26, 2025
208a04d
changes in .ymlfile
ashishrlad Jun 26, 2025
2d68845
changes in .ymlfile
ashishrlad Jun 26, 2025
79045c4
changes in .ymlfile
ashishrlad Jun 26, 2025
a1531aa
changes in .ymlfile
ashishrlad Jun 26, 2025
1e863dd
changes in .ymlfile
ashishrlad Jun 26, 2025
992b3ee
changes in .ymlfile
ashishrlad Jun 26, 2025
19fb45c
changes in .ymlfile
ashishrlad Jun 26, 2025
aca00b3
changes in .ymlfile
ashishrlad Jun 26, 2025
ae86969
changes in .ymlfile
ashishrlad Jun 26, 2025
c7696db
changes in .ymlfile
ashishrlad Jun 26, 2025
3e9bab6
changes in .ymlfile
ashishrlad Jun 26, 2025
190c2d4
changes in .ymlfile
ashishrlad Jun 26, 2025
abe6bf4
changes in .ymlfile
ashishrlad Jun 26, 2025
16e1faf
changes in .ymlfile
ashishrlad Jun 26, 2025
cf2cd50
changes in .ymlfile
ashishrlad Jun 26, 2025
4916605
changes in .ymlfile
ashishrlad Jun 26, 2025
111a1a0
changes in .ymlfile
ashishrlad Jun 26, 2025
dade1bd
changes in .ymlfile
ashishrlad Jun 26, 2025
c88ef24
changes in .ymlfile
ashishrlad Jun 26, 2025
94316ac
changes in .ymlfile
ashishrlad Jun 26, 2025
9c7249c
changes in .ymlfile
ashishrlad Jun 26, 2025
b83dda2
changes in .ymlfile
ashishrlad Jun 26, 2025
58f0991
changes in .ymlfile
ashishrlad Jun 26, 2025
efd34f0
changes in .ymlfile
ashishrlad Jun 26, 2025
02817cd
changes in .ymlfile
ashishrlad Jun 26, 2025
70ea991
changes in .ymlfile
ashishrlad Jun 26, 2025
77262ce
changes in .ymlfile
ashishrlad Jun 26, 2025
9f0b2f4
changes in .ymlfile
ashishrlad Jun 26, 2025
3e4dee0
changes in .ymlfile
ashishrlad Jun 26, 2025
112d721
changes in .ymlfile
ashishrlad Jun 27, 2025
18db55a
changes in .ymlfile
ashishrlad Jun 27, 2025
813c6f6
changes in .ymlfile
ashishrlad Jun 27, 2025
24da73a
changes in .ymlfile
ashishrlad Jun 27, 2025
8cd112f
changes in .ymlfile
ashishrlad Jun 27, 2025
3add51f
changes in .ymlfile
ashishrlad Jun 27, 2025
11ee49a
changes in .ymlfile
ashishrlad Jun 27, 2025
0e95799
changes in .ymlfile
ashishrlad Jun 27, 2025
1a1c84a
changes in .ymlfile
ashishrlad Jun 27, 2025
6e9aa99
changes in .ymlfile
ashishrlad Jun 27, 2025
679d821
changes in .ymlfile
ashishrlad Jun 27, 2025
82ab4a4
changes in .ymlfile
ashishrlad Jun 27, 2025
33890c4
changes in .ymlfile
ashishrlad Jun 27, 2025
13b4e01
changes in .ymlfile
ashishrlad Jun 27, 2025
960ed25
changes in .ymlfile
ashishrlad Jun 27, 2025
437ace3
changes in .ymlfile
ashishrlad Jun 27, 2025
98240e1
changes in .ymlfile
ashishrlad Jun 27, 2025
959ff6f
changes in .ymlfile
ashishrlad Jun 27, 2025
1a3cb09
changes in .ymlfile
ashishrlad Jun 27, 2025
0ddcc6a
changes in .ymlfile
ashishrlad Jun 27, 2025
95341dd
changes in .ymlfile
ashishrlad Jun 27, 2025
b4eebe4
changes in .ymlfile
ashishrlad Jun 27, 2025
5ad4d36
changes in .ymlfile
ashishrlad Jun 27, 2025
fb0c5d5
changes in .ymlfile
ashishrlad Jun 27, 2025
2f63b91
changes in .ymlfile
ashishrlad Jun 27, 2025
541ff3f
changes in .ymlfile
ashishrlad Jun 27, 2025
0611ef5
changes in .ymlfile
ashishrlad Jun 27, 2025
1b8de04
changes in .ymlfile
ashishrlad Jun 27, 2025
86c5f2a
changes in .ymlfile
ashishrlad Jun 27, 2025
3131811
changes in .ymlfile
ashishrlad Jun 27, 2025
a39fa38
changes in .ymlfile
ashishrlad Jun 27, 2025
1183fc4
changes in .ymlfile
ashishrlad Jun 27, 2025
e7dcf58
changes in .ymlfile
ashishrlad Jun 27, 2025
bfcbc2e
changes in .ymlfile
ashishrlad Jun 27, 2025
1633744
all project files uploaded
ashishrlad Jun 30, 2025
3e9b1e4
test
ashishrlad Jul 1, 2025
206d175
testing uat env microservice2
ashishrlad Jul 1, 2025
fc98e5a
changes
ashishrlad Jul 2, 2025
f301063
changes
ashishrlad Jul 2, 2025
aa5d46a
changes
ashishrlad Jul 2, 2025
765b4d0
microservice 1 uat branch changes
ashishrlad Jul 2, 2025
95e2ad3
microservice 1 uat branch changes
ashishrlad Jul 2, 2025
c0b1051
microservice 1 uat branch changes
ashishrlad Jul 2, 2025
b70cb85
microservice 1 uat branch changes
ashishrlad Jul 2, 2025
6c315cc
microservice2 uat branch cocurrency chnages
ashishrlad Jul 2, 2025
ec1e3e3
changes in yaml uat
ashishrlad Jul 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
506 changes: 506 additions & 0 deletions .github/workflows/java-cicd.yml

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM eclipse-temurin:17

# Create working directory
WORKDIR /app

# Copy WAR file to working directory
COPY target/works-with-heroku-1.0.war app.war

# Download Jetty runner
RUN curl -Lo jetty-runner.jar https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-runner/9.3.3.v20150827/jetty-runner-9.3.3.v20150827.jar

# Expose default Jetty port
EXPOSE 80

# Run Jetty with WAR file
ENTRYPOINT ["java", "-jar", "jetty-runner.jar", "app.war"]
1 change: 1 addition & 0 deletions microservice-one/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
16 changes: 16 additions & 0 deletions microservice-one/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM eclipse-temurin:17

# Create working directory
WORKDIR /app

# Copy WAR file to working directory
COPY target/works-with-heroku-1.0.war app.war

# Download Jetty runner
RUN curl -Lo jetty-runner.jar https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-runner/9.3.3.v20150827/jetty-runner-9.3.3.v20150827.jar

# Expose default Jetty port
EXPOSE 80

# Run Jetty with WAR file
ENTRYPOINT ["java", "-jar", "jetty-runner.jar", "app.war"]
1 change: 1 addition & 0 deletions microservice-one/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war
2 changes: 2 additions & 0 deletions microservice-one/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Simple Java Project
This is a demo project that you can use with [Buddy Continuous Deployment](https://buddy.works).
92 changes: 92 additions & 0 deletions microservice-one/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<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>
<groupId>works.buddy.samples</groupId>
<artifactId>works-with-heroku</artifactId>
<version>1.0</version>
<packaging>war</packaging>

<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<!-- 👇 Compiler plugin with Java 8 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<!-- 👇 WAR plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<warSourceDirectory>microservice-one/src/main/webapp</warSourceDirectory>
</configuration>
</plugin>

<!-- 👇 Jetty runner downloader -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-runner</artifactId>
<version>9.3.3.v20150827</version>
<destFileName>jetty-runner.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- 👇 Surefire for tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
</configuration>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package works.buddy.samples;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class WorksWithHerokuServlet extends HttpServlet {

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/plain");
response.setStatus(404);
PrintWriter writer = response.getWriter();
writer.print("Buddy Works with Heroku");
writer.close();
}
}
22 changes: 22 additions & 0 deletions microservice-one/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>Works with Heroku</display-name>

<servlet>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<servlet-class>works.buddy.samples.WorksWithHerokuServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>



</web-app>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package works.buddy.samples;

import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;

import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;

public class WorksWithHerokuServletTest {

private WorksWithHerokuServlet servlet;

@Mock
private HttpServletRequest request;

@Mock
private HttpServletResponse response;

@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
servlet = new WorksWithHerokuServlet();
}

@Test
public void testDoGet() throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream();
PrintWriter writer = new PrintWriter(out);
when(response.getWriter()).thenReturn(writer);

servlet.doGet(request, response);
assertEquals("Buddy Works with Heroku", new String( out.toByteArray(), "UTF-8"));
}
}
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions microservice-one/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactId=works-with-heroku
groupId=works.buddy.samples
version=1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
works/buddy/samples/WorksWithHerokuServlet.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/ashishlad/Documents/simple-java-project/microservice-one/src/main/java/works/buddy/samples/WorksWithHerokuServlet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
works/buddy/samples/WorksWithHerokuServletTest.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/ashishlad/Documents/simple-java-project/microservice-one/src/test/java/works/buddy/samples/WorksWithHerokuServletTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="works.buddy.samples.WorksWithHerokuServletTest" time="1.18" tests="1" errors="0" skipped="0" failures="0">
<properties>
<property name="sun.desktop" value="gnome"/>
<property name="awt.toolkit" value="sun.awt.X11.XToolkit"/>
<property name="java.specification.version" value="11"/>
<property name="sun.cpu.isalist" value=""/>
<property name="sun.jnu.encoding" value="UTF-8"/>
<property name="java.class.path" value="/home/ashishlad/Documents/simple-java-project/microservice-one/target/test-classes:/home/ashishlad/Documents/simple-java-project/microservice-one/target/classes:/home/ashishlad/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/home/ashishlad/.m2/repository/junit/junit/4.13.2/junit-4.13.2.jar:/home/ashishlad/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/ashishlad/.m2/repository/org/mockito/mockito-inline/5.2.0/mockito-inline-5.2.0.jar:/home/ashishlad/.m2/repository/org/mockito/mockito-core/5.2.0/mockito-core-5.2.0.jar:/home/ashishlad/.m2/repository/net/bytebuddy/byte-buddy/1.14.1/byte-buddy-1.14.1.jar:/home/ashishlad/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.1/byte-buddy-agent-1.14.1.jar:/home/ashishlad/.m2/repository/org/objenesis/objenesis/3.3/objenesis-3.3.jar:"/>
<property name="java.vm.vendor" value="Ubuntu"/>
<property name="sun.arch.data.model" value="64"/>
<property name="java.vendor.url" value="https://ubuntu.com/"/>
<property name="user.timezone" value=""/>
<property name="java.vm.specification.version" value="11"/>
<property name="os.name" value="Linux"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="user.country" value="US"/>
<property name="sun.boot.library.path" value="/usr/lib/jvm/java-11-openjdk-amd64/lib"/>
<property name="sun.java.command" value="/home/ashishlad/Documents/simple-java-project/microservice-one/target/surefire/surefirebooter-20250627044056488_3.jar /home/ashishlad/Documents/simple-java-project/microservice-one/target/surefire 2025-06-27T04-40-56_248-jvmRun1 surefire-20250627044056488_1tmp surefire_0-20250627044056488_2tmp"/>
<property name="jdk.debug" value="release"/>
<property name="surefire.test.class.path" value="/home/ashishlad/Documents/simple-java-project/microservice-one/target/test-classes:/home/ashishlad/Documents/simple-java-project/microservice-one/target/classes:/home/ashishlad/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/home/ashishlad/.m2/repository/junit/junit/4.13.2/junit-4.13.2.jar:/home/ashishlad/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/ashishlad/.m2/repository/org/mockito/mockito-inline/5.2.0/mockito-inline-5.2.0.jar:/home/ashishlad/.m2/repository/org/mockito/mockito-core/5.2.0/mockito-core-5.2.0.jar:/home/ashishlad/.m2/repository/net/bytebuddy/byte-buddy/1.14.1/byte-buddy-1.14.1.jar:/home/ashishlad/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.1/byte-buddy-agent-1.14.1.jar:/home/ashishlad/.m2/repository/org/objenesis/objenesis/3.3/objenesis-3.3.jar:"/>
<property name="sun.cpu.endian" value="little"/>
<property name="user.home" value="/home/ashishlad"/>
<property name="user.language" value="en"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="java.version.date" value="2025-04-15"/>
<property name="java.home" value="/usr/lib/jvm/java-11-openjdk-amd64"/>
<property name="file.separator" value="/"/>
<property name="basedir" value="/home/ashishlad/Documents/simple-java-project/microservice-one"/>
<property name="java.vm.compressedOopsMode" value="Zero based"/>
<property name="line.separator" value="&#10;"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
<property name="surefire.real.class.path" value="/home/ashishlad/Documents/simple-java-project/microservice-one/target/surefire/surefirebooter-20250627044056488_3.jar"/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="java.runtime.version" value="11.0.27+6-post-Ubuntu-0ubuntu120.04"/>
<property name="user.name" value="ashishlad"/>
<property name="path.separator" value=":"/>
<property name="os.version" value="5.15.0-139-generic"/>
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
<property name="file.encoding" value="UTF-8"/>
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
<property name="localRepository" value="/home/ashishlad/.m2/repository"/>
<property name="java.vendor.url.bug" value="https://bugs.launchpad.net/ubuntu/+source/openjdk-lts"/>
<property name="java.io.tmpdir" value="/tmp"/>
<property name="java.version" value="11.0.27"/>
<property name="user.dir" value="/home/ashishlad/Documents/simple-java-project/microservice-one"/>
<property name="os.arch" value="amd64"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
<property name="sun.os.patch.level" value="unknown"/>
<property name="java.library.path" value="/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib"/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.vendor" value="Ubuntu"/>
<property name="java.vm.version" value="11.0.27+6-post-Ubuntu-0ubuntu120.04"/>
<property name="java.specification.maintenance.version" value="3"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="java.class.version" value="55.0"/>
</properties>
<testcase name="testDoGet" classname="works.buddy.samples.WorksWithHerokuServletTest" time="1.121"/>
</testsuite>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: works.buddy.samples.WorksWithHerokuServletTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.180 s -- in works.buddy.samples.WorksWithHerokuServletTest
Binary file not shown.
Binary file added microservice-one/target/works-with-heroku-1.0.war
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>Works with Heroku</display-name>

<servlet>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<servlet-class>works.buddy.samples.WorksWithHerokuServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

</web-app>
Binary file not shown.
25 changes: 25 additions & 0 deletions microservice-one/target/works-with-heroku-1.0/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>Works with Heroku</display-name>

<servlet>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<servlet-class>works.buddy.samples.WorksWithHerokuServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
</web-app>

</web-app>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package works.buddy.samples;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class WorksWithHerokuServlet extends HttpServlet {

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/plain");
response.setStatus(404);
PrintWriter writer = response.getWriter();
writer.print("Buddy Works with Heroku");
writer.close();
}
}
18 changes: 18 additions & 0 deletions microservice-two/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>Works with Heroku</display-name>

<servlet>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<servlet-class>works.buddy.samples.WorksWithHerokuServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>WorksWithHerokuServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

</web-app>
Loading