Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eShop
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
37
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karel Frajták
eShop
Merge requests
!17
PurchasesArchiveTest and ItemPurchaseArchiveEntry tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
PurchasesArchiveTest and ItemPurchaseArchiveEntry tests
klimato2/eShop:master
into
master
Overview
1
Commits
1
Pipelines
1
Changes
3
Closed
Tomáš Klíma
requested to merge
klimato2/eShop:master
into
master
6 years ago
Overview
1
Commits
1
Pipelines
1
Changes
3
Expand
0
0
Merge request reports
Compare
master
version 3
2a80760e
6 years ago
version 2
2a80760e
6 years ago
version 1
2a80760e
6 years ago
master (base)
and
latest version
latest version
2a80760e
1 commit,
6 years ago
version 3
2a80760e
1 commit,
6 years ago
version 2
2a80760e
1 commit,
6 years ago
version 1
2a80760e
1 commit,
6 years ago
3 files
+
121
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/main/java/cz/cvut/eshop/archive/PurchasesArchive.java
+
8
−
4
Options
@@ -34,10 +34,7 @@ public class PurchasesArchive {
}
return
0
;
}
public
void
putOrderToPurchasesArchive
(
Order
order
)
{
orderArchive
.
add
(
order
);
ArrayList
<
Item
>
orderItems
=
order
.
getItems
();
@@ -50,6 +47,13 @@ public class PurchasesArchive {
}
}
}
public
HashMap
<
Integer
,
ItemPurchaseArchiveEntry
>
getItemPurchaseArchive
()
{
return
itemPurchaseArchive
;
}
public
ArrayList
<
Order
>
getOrderArchive
()
{
return
orderArchive
;
}
}