Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
APLAB-SESSION7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731044
APLAB-SESSION7
Commits
ce697007
Commit
ce697007
authored
May 05, 2019
by
9731044
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
b021b518
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
SeatTest.java
src/flight/manager/SeatTest.java
+32
-0
No files found.
src/flight/manager/SeatTest.java
0 → 100644
View file @
ce697007
package
flight
.
manager
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
fail
;
import
org.junit.jupiter.api.BeforeAll
;
import
org.junit.jupiter.api.Test
;
class
SeatTest
{
static
Seat
seat
;
static
Customer
user
;
@BeforeAll
public
static
void
testSeat
()
{
seat
=
new
Seat
(
"10C"
,
"Economy"
);
user
=
new
Customer
(
"Taghi"
,
"Taheri"
,
"CD456"
);
seat
.
setUser
(
user
);
}
@Test
void
testGetSeatNo
()
{
assertNotNull
(
seat
.
getSeatNo
());
}
@Test
void
testGetUser
()
{
assertNotNull
(
seat
.
getUser
());
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment