This commit is contained in:
2025-10-25 00:38:37 +04:00
parent 19c7ea79a9
commit aa66e43e67
155 changed files with 1162 additions and 927 deletions

Binary file not shown.

View File

@@ -20,9 +20,12 @@ repositories {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
runtimeOnly 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

View File

@@ -3,17 +3,17 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - CustomerServiceIntegrationTest</title>
<title>Test results - CustomerServiceTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>CustomerServiceIntegrationTest</h1>
<h1>CustomerServiceTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/com.example.service.html">com.example.service</a> &gt; CustomerServiceIntegrationTest</div>
<a href="../packages/com.example.service.html">com.example.service</a> &gt; CustomerServiceTest</div>
<div id="summary">
<table>
<tr>
@@ -23,7 +23,7 @@
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">4</div>
<div class="counter">2</div>
<p>tests</p>
</div>
</td>
@@ -41,7 +41,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.340s</div>
<div class="counter">0.518s</div>
<p>duration</p>
</div>
</td>
@@ -64,9 +64,6 @@
<a href="#">Tests</a>
</li>
<li>
<a href="#">Standard output</a>
</li>
<li>
<a href="#">Standard error</a>
</li>
</ul>
@@ -81,49 +78,18 @@
</tr>
</thead>
<tr>
<td class="success">createTest()</td>
<td class="success">0.001s</td>
<td class="success">create_WhenValidData_ShouldCreateCustomer()</td>
<td class="success">0.515s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">deleteTest()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">getTest_WhenCustomerNotExists_ShouldThrowException()</td>
<td class="success">0.336s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">updateTest()</td>
<td class="success">0.002s</td>
<td class="success">findById_WhenCustomerExists_ShouldReturnCustomer()</td>
<td class="success">0.003s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>10:23:39.285 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.example.service.CustomerServiceIntegrationTest]: CustomerServiceIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
10:23:39.330 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.example.DemoApplication for test class com.example.service.CustomerServiceIntegrationTest
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.5.5)
2025-10-11T10:23:39.481+04:00 INFO 25016 --- [demo] [ Test worker] c.e.s.CustomerServiceIntegrationTest : Starting CustomerServiceIntegrationTest using Java 21.0.3 with PID 25016 (started by floom in /Users/floom/PIbd-21_Kudrinsky_O.S._IP-6)
2025-10-11T10:23:39.481+04:00 INFO 25016 --- [demo] [ Test worker] c.e.s.CustomerServiceIntegrationTest : No active profile set, falling back to 1 default profile: &quot;default&quot;
2025-10-11T10:23:40.104+04:00 INFO 25016 --- [demo] [ Test worker] c.e.s.CustomerServiceIntegrationTest : Started CustomerServiceIntegrationTest in 0.719 seconds (process running for 1.208)
</pre>
</span>
</div>
<div class="tab">
<h2>Standard error</h2>
<span class="code">
<pre>Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3
@@ -142,7 +108,7 @@ WARNING: Dynamic loading of agents will be disallowed by default in a future rel
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 11 окт. 2025г., 10:23:40</p>
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 25 окт. 2025г., 00:35:22</p>
</div>
</div>
</body>

View File

@@ -3,17 +3,17 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - OrderServiceIntegrationTest</title>
<title>Test results - DeliveryServiceTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>OrderServiceIntegrationTest</h1>
<h1>DeliveryServiceTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/com.example.service.html">com.example.service</a> &gt; OrderServiceIntegrationTest</div>
<a href="../packages/com.example.service.html">com.example.service</a> &gt; DeliveryServiceTest</div>
<div id="summary">
<table>
<tr>
@@ -41,7 +41,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.007s</div>
<div class="counter">0.045s</div>
<p>duration</p>
</div>
</td>
@@ -63,9 +63,6 @@
<li>
<a href="#">Tests</a>
</li>
<li>
<a href="#">Standard output</a>
</li>
</ul>
<div class="tab">
<h2>Tests</h2>
@@ -78,45 +75,37 @@
</tr>
</thead>
<tr>
<td class="success">createTest()</td>
<td class="success">create_WhenValidData_ShouldCreateDelivery()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">deleteTest()</td>
<td class="success">delete_WhenDeliveryExists_ShouldDeleteDelivery()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">findByCustomerIdTest()</td>
<td class="success">delete_WhenDeliveryNotExists_ShouldReturnFalse()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">findByStatusTest()</td>
<td class="success">findAll_ShouldReturnAllDeliveries()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">getTest_WhenOrderNotExists_ShouldThrowException()</td>
<td class="success">0.002s</td>
<td class="success">findById_WhenDeliveryExists_ShouldReturnDelivery()</td>
<td class="success">0.040s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">updateTest()</td>
<td class="success">update_WhenDeliveryExists_ShouldUpdateDelivery()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>2025-10-11T10:23:40.464+04:00 INFO 25016 --- [demo] [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.example.service.OrderServiceIntegrationTest]: OrderServiceIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2025-10-11T10:23:40.464+04:00 INFO 25016 --- [demo] [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.example.DemoApplication for test class com.example.service.OrderServiceIntegrationTest
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
@@ -125,7 +114,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 11 окт. 2025г., 10:23:40</p>
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 25 окт. 2025г., 00:35:22</p>
</div>
</div>
</body>

View File

@@ -3,17 +3,17 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - DeliveryServiceIntegrationTest</title>
<title>Test results - OrderServiceTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>DeliveryServiceIntegrationTest</h1>
<h1>OrderServiceTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/com.example.service.html">com.example.service</a> &gt; DeliveryServiceIntegrationTest</div>
<a href="../packages/com.example.service.html">com.example.service</a> &gt; OrderServiceTest</div>
<div id="summary">
<table>
<tr>
@@ -23,7 +23,7 @@
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">5</div>
<div class="counter">7</div>
<p>tests</p>
</div>
</td>
@@ -41,7 +41,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.007s</div>
<div class="counter">0.048s</div>
<p>duration</p>
</div>
</td>
@@ -63,9 +63,6 @@
<li>
<a href="#">Tests</a>
</li>
<li>
<a href="#">Standard output</a>
</li>
</ul>
<div class="tab">
<h2>Tests</h2>
@@ -78,40 +75,42 @@
</tr>
</thead>
<tr>
<td class="success">createTest()</td>
<td class="success">create_WhenCustomerNotFound_ShouldThrowException()</td>
<td class="success">0.003s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">create_WhenValidData_ShouldCreateOrder()</td>
<td class="success">0.038s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">delete_WhenOrderExists_ShouldDeleteOrder()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">deleteTest()</td>
<td class="success">delete_WhenOrderNotExists_ShouldReturnFalse()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">findAll_ShouldReturnAllOrders()</td>
<td class="success">0.002s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">findByTrackingNumberTest()</td>
<td class="success">findById_WhenOrderExists_ShouldReturnOrder()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">getTest_WhenDeliveryNotExists_ShouldThrowException()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">updateTest()</td>
<td class="success">update_WhenOrderExists_ShouldUpdateOrder()</td>
<td class="success">0.002s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>2025-10-11T10:23:40.453+04:00 INFO 25016 --- [demo] [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.example.service.DeliveryServiceIntegrationTest]: DeliveryServiceIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2025-10-11T10:23:40.454+04:00 INFO 25016 --- [demo] [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.example.DemoApplication for test class com.example.service.DeliveryServiceIntegrationTest
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
@@ -120,7 +119,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 11 окт. 2025г., 10:23:40</p>
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 25 окт. 2025г., 00:35:22</p>
</div>
</div>
</body>

View File

@@ -38,7 +38,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.354s</div>
<div class="counter">0.611s</div>
<p>duration</p>
</div>
</td>
@@ -85,7 +85,7 @@
<td>15</td>
<td>0</td>
<td>0</td>
<td>0.354s</td>
<td>0.611s</td>
<td class="success">100%</td>
</tr>
</tbody>
@@ -107,32 +107,32 @@
<tbody>
<tr>
<td class="success">
<a href="classes/com.example.service.CustomerServiceIntegrationTest.html">com.example.service.CustomerServiceIntegrationTest</a>
<a href="classes/com.example.service.CustomerServiceTest.html">com.example.service.CustomerServiceTest</a>
</td>
<td>4</td>
<td>2</td>
<td>0</td>
<td>0</td>
<td>0.340s</td>
<td>0.518s</td>
<td class="success">100%</td>
</tr>
<tr>
<td class="success">
<a href="classes/com.example.service.DeliveryServiceIntegrationTest.html">com.example.service.DeliveryServiceIntegrationTest</a>
</td>
<td>5</td>
<td>0</td>
<td>0</td>
<td>0.007s</td>
<td class="success">100%</td>
</tr>
<tr>
<td class="success">
<a href="classes/com.example.service.OrderServiceIntegrationTest.html">com.example.service.OrderServiceIntegrationTest</a>
<a href="classes/com.example.service.DeliveryServiceTest.html">com.example.service.DeliveryServiceTest</a>
</td>
<td>6</td>
<td>0</td>
<td>0</td>
<td>0.007s</td>
<td>0.045s</td>
<td class="success">100%</td>
</tr>
<tr>
<td class="success">
<a href="classes/com.example.service.OrderServiceTest.html">com.example.service.OrderServiceTest</a>
</td>
<td>7</td>
<td>0</td>
<td>0</td>
<td>0.048s</td>
<td class="success">100%</td>
</tr>
</tbody>
@@ -146,7 +146,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 11 окт. 2025г., 10:23:40</p>
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 25 окт. 2025г., 00:35:22</p>
</div>
</div>
</body>

View File

@@ -40,7 +40,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.354s</div>
<div class="counter">0.611s</div>
<p>duration</p>
</div>
</td>
@@ -78,32 +78,32 @@
</thead>
<tr>
<td class="success">
<a href="../classes/com.example.service.CustomerServiceIntegrationTest.html">CustomerServiceIntegrationTest</a>
<a href="../classes/com.example.service.CustomerServiceTest.html">CustomerServiceTest</a>
</td>
<td>4</td>
<td>2</td>
<td>0</td>
<td>0</td>
<td>0.340s</td>
<td>0.518s</td>
<td class="success">100%</td>
</tr>
<tr>
<td class="success">
<a href="../classes/com.example.service.DeliveryServiceIntegrationTest.html">DeliveryServiceIntegrationTest</a>
</td>
<td>5</td>
<td>0</td>
<td>0</td>
<td>0.007s</td>
<td class="success">100%</td>
</tr>
<tr>
<td class="success">
<a href="../classes/com.example.service.OrderServiceIntegrationTest.html">OrderServiceIntegrationTest</a>
<a href="../classes/com.example.service.DeliveryServiceTest.html">DeliveryServiceTest</a>
</td>
<td>6</td>
<td>0</td>
<td>0</td>
<td>0.007s</td>
<td>0.045s</td>
<td class="success">100%</td>
</tr>
<tr>
<td class="success">
<a href="../classes/com.example.service.OrderServiceTest.html">OrderServiceTest</a>
</td>
<td>7</td>
<td>0</td>
<td>0</td>
<td>0.048s</td>
<td class="success">100%</td>
</tr>
</table>
@@ -116,7 +116,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 11 окт. 2025г., 10:23:40</p>
<a href="https://www.gradle.org">Gradle 8.14.3</a> at 25 окт. 2025г., 00:35:22</p>
</div>
</div>
</body>

View File

@@ -1 +1,22 @@
spring.application.name=demo
# H2 Database Configuration
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
# JPA Configuration
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
# H2 Console (для просмотра базы в браузере)
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
# Включить инициализацию данных
spring.sql.init.mode=always
spring.jpa.defer-datasource-initialization=true
# Server Configuration
server.port=8080

View File

@@ -0,0 +1,14 @@
-- Тестовые клиенты
INSERT INTO customers (id, name, email, created_at, updated_at)
VALUES
(1, 'Иван Иванов', 'ivan@mail.ru', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP),
(2, 'Петр Петров', 'petr@mail.ru', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP),
(3, 'Мария Сидорова', 'maria@mail.ru', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP),
(4, 'Алексей Козлов', 'alex@mail.ru', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP),
(5, 'Ольга Новикова', 'olga@mail.ru', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
-- Тестовые доставки (опционально)
INSERT INTO deliveries (id, tracking_number, destination, status, customer_name, created_at, updated_at)
VALUES
(1, 'IVN777777', 'гоголя 34', 'В пути', 'Иван Иванов', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP),
(2, 'IVN012021', 'Москва', 'Принято', 'Петр Петров', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);

View File

@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.example.service.CustomerServiceIntegrationTest" tests="4" skipped="0" failures="0" errors="0" timestamp="2025-10-11T06:23:40.109Z" hostname="MacBook-Air-Oleg.local" time="0.342">
<properties/>
<testcase name="getTest_WhenCustomerNotExists_ShouldThrowException()" classname="com.example.service.CustomerServiceIntegrationTest" time="0.336"/>
<testcase name="updateTest()" classname="com.example.service.CustomerServiceIntegrationTest" time="0.002"/>
<testcase name="createTest()" classname="com.example.service.CustomerServiceIntegrationTest" time="0.001"/>
<testcase name="deleteTest()" classname="com.example.service.CustomerServiceIntegrationTest" time="0.001"/>
<system-out><![CDATA[10:23:39.285 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.example.service.CustomerServiceIntegrationTest]: CustomerServiceIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
10:23:39.330 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.example.DemoApplication for test class com.example.service.CustomerServiceIntegrationTest
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.5.5)
2025-10-11T10:23:39.481+04:00 INFO 25016 --- [demo] [ Test worker] c.e.s.CustomerServiceIntegrationTest : Starting CustomerServiceIntegrationTest using Java 21.0.3 with PID 25016 (started by floom in /Users/floom/PIbd-21_Kudrinsky_O.S._IP-6)
2025-10-11T10:23:39.481+04:00 INFO 25016 --- [demo] [ Test worker] c.e.s.CustomerServiceIntegrationTest : No active profile set, falling back to 1 default profile: "default"
2025-10-11T10:23:40.104+04:00 INFO 25016 --- [demo] [ Test worker] c.e.s.CustomerServiceIntegrationTest : Started CustomerServiceIntegrationTest in 0.719 seconds (process running for 1.208)
]]></system-out>
<system-err><![CDATA[Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3
WARNING: A Java agent has been loaded dynamically (/Users/floom/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.17.7/fbf3d6d649ed37fc9e9c59480a05be0a26e3c2da/byte-buddy-agent-1.17.7.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
]]></system-err>
</testsuite>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.example.service.CustomerServiceTest" tests="2" skipped="0" failures="0" errors="0" timestamp="2025-10-24T20:35:22.024Z" hostname="MacBook-Air-Oleg.local" time="0.52">
<properties/>
<testcase name="create_WhenValidData_ShouldCreateCustomer()" classname="com.example.service.CustomerServiceTest" time="0.515"/>
<testcase name="findById_WhenCustomerExists_ShouldReturnCustomer()" classname="com.example.service.CustomerServiceTest" time="0.003"/>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3
WARNING: A Java agent has been loaded dynamically (/Users/floom/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.17.7/fbf3d6d649ed37fc9e9c59480a05be0a26e3c2da/byte-buddy-agent-1.17.7.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
]]></system-err>
</testsuite>

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.example.service.DeliveryServiceIntegrationTest" tests="5" skipped="0" failures="0" errors="0" timestamp="2025-10-11T06:23:40.454Z" hostname="MacBook-Air-Oleg.local" time="0.008">
<properties/>
<testcase name="updateTest()" classname="com.example.service.DeliveryServiceIntegrationTest" time="0.002"/>
<testcase name="findByTrackingNumberTest()" classname="com.example.service.DeliveryServiceIntegrationTest" time="0.001"/>
<testcase name="createTest()" classname="com.example.service.DeliveryServiceIntegrationTest" time="0.001"/>
<testcase name="deleteTest()" classname="com.example.service.DeliveryServiceIntegrationTest" time="0.002"/>
<testcase name="getTest_WhenDeliveryNotExists_ShouldThrowException()" classname="com.example.service.DeliveryServiceIntegrationTest" time="0.001"/>
<system-out><![CDATA[2025-10-11T10:23:40.453+04:00 INFO 25016 --- [demo] [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.example.service.DeliveryServiceIntegrationTest]: DeliveryServiceIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2025-10-11T10:23:40.454+04:00 INFO 25016 --- [demo] [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.example.DemoApplication for test class com.example.service.DeliveryServiceIntegrationTest
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.example.service.DeliveryServiceTest" tests="6" skipped="0" failures="0" errors="0" timestamp="2025-10-24T20:35:22.547Z" hostname="MacBook-Air-Oleg.local" time="0.049">
<properties/>
<testcase name="findById_WhenDeliveryExists_ShouldReturnDelivery()" classname="com.example.service.DeliveryServiceTest" time="0.04"/>
<testcase name="create_WhenValidData_ShouldCreateDelivery()" classname="com.example.service.DeliveryServiceTest" time="0.001"/>
<testcase name="delete_WhenDeliveryNotExists_ShouldReturnFalse()" classname="com.example.service.DeliveryServiceTest" time="0.001"/>
<testcase name="update_WhenDeliveryExists_ShouldUpdateDelivery()" classname="com.example.service.DeliveryServiceTest" time="0.001"/>
<testcase name="delete_WhenDeliveryExists_ShouldDeleteDelivery()" classname="com.example.service.DeliveryServiceTest" time="0.001"/>
<testcase name="findAll_ShouldReturnAllDeliveries()" classname="com.example.service.DeliveryServiceTest" time="0.001"/>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

View File

@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.example.service.OrderServiceIntegrationTest" tests="6" skipped="0" failures="0" errors="0" timestamp="2025-10-11T06:23:40.465Z" hostname="MacBook-Air-Oleg.local" time="0.009">
<properties/>
<testcase name="findByStatusTest()" classname="com.example.service.OrderServiceIntegrationTest" time="0.001"/>
<testcase name="updateTest()" classname="com.example.service.OrderServiceIntegrationTest" time="0.001"/>
<testcase name="getTest_WhenOrderNotExists_ShouldThrowException()" classname="com.example.service.OrderServiceIntegrationTest" time="0.002"/>
<testcase name="createTest()" classname="com.example.service.OrderServiceIntegrationTest" time="0.001"/>
<testcase name="findByCustomerIdTest()" classname="com.example.service.OrderServiceIntegrationTest" time="0.001"/>
<testcase name="deleteTest()" classname="com.example.service.OrderServiceIntegrationTest" time="0.001"/>
<system-out><![CDATA[2025-10-11T10:23:40.464+04:00 INFO 25016 --- [demo] [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.example.service.OrderServiceIntegrationTest]: OrderServiceIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2025-10-11T10:23:40.464+04:00 INFO 25016 --- [demo] [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.example.DemoApplication for test class com.example.service.OrderServiceIntegrationTest
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.example.service.OrderServiceTest" tests="7" skipped="0" failures="0" errors="0" timestamp="2025-10-24T20:35:22.598Z" hostname="MacBook-Air-Oleg.local" time="0.048">
<properties/>
<testcase name="create_WhenValidData_ShouldCreateOrder()" classname="com.example.service.OrderServiceTest" time="0.038"/>
<testcase name="create_WhenCustomerNotFound_ShouldThrowException()" classname="com.example.service.OrderServiceTest" time="0.003"/>
<testcase name="findById_WhenOrderExists_ShouldReturnOrder()" classname="com.example.service.OrderServiceTest" time="0.001"/>
<testcase name="findAll_ShouldReturnAllOrders()" classname="com.example.service.OrderServiceTest" time="0.002"/>
<testcase name="delete_WhenOrderNotExists_ShouldReturnFalse()" classname="com.example.service.OrderServiceTest" time="0.001"/>
<testcase name="delete_WhenOrderExists_ShouldDeleteOrder()" classname="com.example.service.OrderServiceTest" time="0.001"/>
<testcase name="update_WhenOrderExists_ShouldUpdateOrder()" classname="com.example.service.OrderServiceTest" time="0.002"/>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

Some files were not shown because too many files have changed in this diff Show More