Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GalaxyTrucker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leonard Haddad
GalaxyTrucker
Commits
a79ccfe2
Commit
a79ccfe2
authored
4 years ago
by
Karl Aaron Rudkowski
Browse files
Options
Downloads
Patches
Plain Diff
traderDAOTest fix
hp in trader zugefügt, deswegen auch hier
parent
c390d503
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/com/galaxytrucker/galaxytruckerreloaded/Test/Server/Persistence/TraderDAOTest.java
+3
-3
3 additions, 3 deletions
...ruckerreloaded/Test/Server/Persistence/TraderDAOTest.java
with
3 additions
and
3 deletions
core/src/com/galaxytrucker/galaxytruckerreloaded/Test/Server/Persistence/TraderDAOTest.java
+
3
−
3
View file @
a79ccfe2
...
...
@@ -39,7 +39,7 @@ public class TraderDAOTest {
@Test
public
void
testPersist
()
{
Trader
trader
=
new
Trader
(
UUID
.
randomUUID
().
hashCode
(),
new
Planet
(
UUID
.
randomUUID
().
hashCode
(),
planetNameGenerator
(),
10
,
10
,
PlanetEvent
.
SHOP
,
new
ArrayList
<
Ship
>()),
new
ArrayList
<
Weapon
>(),
0
,
0
,
new
ArrayList
<
Crew
>());
PlanetEvent
.
SHOP
,
new
ArrayList
<
Ship
>()),
new
ArrayList
<
Weapon
>(),
0
,
0
,
0
,
new
ArrayList
<
Crew
>());
try
{
traderDAO
.
persist
(
trader
);
entityManager
.
getTransaction
().
begin
();
...
...
@@ -58,7 +58,7 @@ public class TraderDAOTest {
@Test
public
void
testEdit
()
{
Trader
trader
=
new
Trader
(
UUID
.
randomUUID
().
hashCode
(),
new
Planet
(
UUID
.
randomUUID
().
hashCode
(),
planetNameGenerator
(),
10
,
10
,
PlanetEvent
.
SHOP
,
new
ArrayList
<
Ship
>()),
new
ArrayList
<
Weapon
>(),
0
,
0
,
new
ArrayList
<
Crew
>());
PlanetEvent
.
SHOP
,
new
ArrayList
<
Ship
>()),
new
ArrayList
<
Weapon
>(),
0
,
0
,
0
,
new
ArrayList
<
Crew
>());
try
{
traderDAO
.
persist
(
trader
);
entityManager
.
getTransaction
().
begin
();
...
...
@@ -79,7 +79,7 @@ public class TraderDAOTest {
@Test
public
void
testRemove
()
{
Trader
trader
=
new
Trader
(
UUID
.
randomUUID
().
hashCode
(),
new
Planet
(
UUID
.
randomUUID
().
hashCode
(),
planetNameGenerator
(),
10
,
10
,
PlanetEvent
.
SHOP
,
new
ArrayList
<
Ship
>()),
new
ArrayList
<
Weapon
>(),
0
,
0
,
new
ArrayList
<
Crew
>());
PlanetEvent
.
SHOP
,
new
ArrayList
<
Ship
>()),
new
ArrayList
<
Weapon
>(),
0
,
0
,
0
,
new
ArrayList
<
Crew
>());
try
{
traderDAO
.
persist
(
trader
);
traderDAO
.
remove
(
trader
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment