Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added .gradle/7.4/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added .gradle/7.4/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/7.4/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/7.4/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/7.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/7.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/7.4/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/7.4/gc.properties
Empty file.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Tue Jan 07 22:15:46 KST 2025
gradle.version=7.4
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added .gradle/file-system.probe
Binary file not shown.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

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

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

17 changes: 17 additions & 0 deletions .idea/gradle.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.

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

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

36 changes: 36 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
plugins {
id 'java'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
testCompileOnly 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'

// JUnit API
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
// JUnit 실행 엔진
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'

// Optional: JUnit BOM으로 버전 관리
testImplementation platform('org.junit:junit-bom:5.10.0')

// Log4j Core와 API 의존성 추가
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'

// (Optional) 로그를 파일이 아닌 콘솔에 출력할 경우
implementation 'org.apache.logging.log4j:log4j-jul:2.20.0'
}

test {
useJUnitPlatform()
}
Binary file added build/classes/java/main/Order.class
Binary file not shown.
Binary file added build/classes/java/main/ProductSychronized.class
Binary file not shown.
Binary file not shown.
Binary file added build/classes/java/test/Product0rderTest.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
131 changes: 131 additions & 0 deletions build/reports/tests/test/classes/Product0rderTest.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Class Product0rderTest</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>Class Product0rderTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/default-package.html">default-package</a> &gt; Product0rderTest</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.048s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
<li>
<a href="#tab1">Standard output</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Method name</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">재고테스트</td>
<td class="success">Product0rderTest()</td>
<td class="success">0.048s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>{35={apple=8}}
{38={apple=8}}
{30={apple=8}}
{31={apple=8}}
{29={apple=8}}
{33={apple=8}}
{27={apple=8}}
{37={apple=8}}
{34={apple=8}}
{36={apple=8}}
{28={apple=8}}
{32={apple=8}}
2025-01-07 22:19:54 [pool-2-thread-9] INFO PurchaseServiceSynchronizedTest - Thread 35 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-6] INFO PurchaseServiceSynchronizedTest - Thread 32 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-10] INFO PurchaseServiceSynchronizedTest - Thread 36 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-12] INFO PurchaseServiceSynchronizedTest - Thread 38 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-11] INFO PurchaseServiceSynchronizedTest - Thread 37 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-3] INFO PurchaseServiceSynchronizedTest - Thread 29 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-5] INFO PurchaseServiceSynchronizedTest - Thread 31 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-1] INFO PurchaseServiceSynchronizedTest - Thread 27 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-4] INFO PurchaseServiceSynchronizedTest - Thread 30 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-2] INFO PurchaseServiceSynchronizedTest - Thread 28 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-7] INFO PurchaseServiceSynchronizedTest - Thread 33 주문 정보 : 1건 [8] : 남은 수량 4
2025-01-07 22:19:54 [pool-2-thread-8] INFO PurchaseServiceSynchronizedTest - Thread 34 주문 정보 : 1건 [8] : 남은 수량 4
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 7.4</a> at 2025. 1. 7. 오후 10:19:54</p>
</div>
</div>
</body>
</html>
Loading