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
An error occurred while fetching the assigned milestone of the selected merge_request.
Show more breadcrumbs
Karel Frajták
eShop
Merge requests
!4
Master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Master
grubejak/eShop:master
into
master
Overview
0
Commits
3
Pipelines
2
Changes
3
Merged
Jakub Gruber
requested to merge
grubejak/eShop:master
into
master
6 years ago
Overview
0
Commits
3
Pipelines
2
Changes
3
Expand
Homework for unit testing
0
0
Merge request reports
Compare
master
version 1
5c751693
6 years ago
master (base)
and
latest version
latest version
7e92733e
3 commits,
6 years ago
version 1
5c751693
2 commits,
6 years ago
3 files
+
183
−
2
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/test/java/cz/cvut/eshop/storage/ItemStockTest.java
0 → 100644
+
25
−
0
Options
package
cz.cvut.eshop.storage
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
public
class
ItemStockTest
{
@Test
public
void
increaseItemCount
()
{
ItemStock
itemStock
=
new
ItemStock
(
null
);
itemStock
.
IncreaseItemCount
(
10
);
assertEquals
(
10
,
itemStock
.
getCount
());
}
@Test
public
void
decreaseItemCount
()
{
ItemStock
itemStock
=
new
ItemStock
(
null
);
itemStock
.
decreaseItemCount
(
10
);
assertEquals
(-
10
,
itemStock
.
getCount
());
}
}
\ No newline at end of file