Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kouluhallinnointisovellus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
villesha
Kouluhallinnointisovellus
Commits
a6eb2c50
Commit
a6eb2c50
authored
3 years ago
by
ville
Browse files
Options
Downloads
Patches
Plain Diff
jenkins fix 2.0
parent
e7f1305e
No related branches found
Branches containing commit
Tags
Sprint-5
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main/java/hibernate.cfg.xml
+0
-2
0 additions, 2 deletions
src/main/java/hibernate.cfg.xml
src/test/java/controller/ControllerTest.java
+0
-3
0 additions, 3 deletions
src/test/java/controller/ControllerTest.java
src/test/java/model/GroupTest.java
+0
-11
0 additions, 11 deletions
src/test/java/model/GroupTest.java
with
0 additions
and
16 deletions
src/main/java/hibernate.cfg.xml
+
0
−
2
View file @
a6eb2c50
...
...
@@ -21,8 +21,6 @@
<mapping
class=
"model.Conversation"
/>
<mapping
class=
"model.Bulletin"
/>
<mapping
class=
"model.Student"
/>
<mapping
class=
"model.Conversation"
/>
<mapping
class=
"model.Message"
/>
<mapping
class=
"model.Group"
/>
<mapping
class=
"model.Course"
/>
</session-factory>
...
...
This diff is collapsed.
Click to expand it.
src/test/java/controller/ControllerTest.java
+
0
−
3
View file @
a6eb2c50
...
...
@@ -137,9 +137,6 @@ class ControllerTest {
assertTrue
(
controller
.
createUser
(
PersonType
.
Teacher
,
"Antti"
,
"Pekka"
,
"04432323232"
,
"antti@test.com"
));
assertTrue
(
controller
.
login
(
"Antti.pekka"
,
"123"
));
students
.
add
(
new
Student
());
assertTrue
(
controller
.
createGroup
(
"Testi"
,
students
));
assertNull
(
controller
.
getGroup
(
"Ei ole"
));
assertNotNull
(
controller
.
getGroup
(
"Testi"
));
assertTrue
(
controller
.
getGroups
().
length
>
0
);
}
}
This diff is collapsed.
Click to expand it.
src/test/java/model/GroupTest.java
+
0
−
11
View file @
a6eb2c50
...
...
@@ -64,17 +64,6 @@ class GroupTest {
assertTrue
(
testGroup
.
getTeacher
()
!=
null
,
"setTeacher(): Failed to set Group Teacher"
);
}
@Test
@DisplayName
(
"Test setStudents and getStudents methods"
)
public
void
testSetGetStudents
()
{
assertTrue
(
testGroup
.
getStudents
()
==
null
,
"getStudents(): Failed to get Group Students"
);
Student
testStudent
=
new
Student
();
testGroupStudents
.
add
(
testStudent
);
testGroup
.
setStudents
(
testGroupStudents
);
assertTrue
(
testGroup
.
getStudents
()
!=
null
,
"setStudents(): Failed to set Group Students"
);
testStudent
=
null
;
}
@Test
@DisplayName
(
"Test setBulletins and getBulletins methods"
)
public
void
testSetGetBulletins
()
{
...
...
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