Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gradle-tutorial
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Arne Schmidt
gradle-tutorial
Commits
979c233c
Commit
979c233c
authored
Mar 07, 2017
by
Arne Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test geändert
parent
d9623af3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
34 deletions
+31
-34
.gitignore
.gitignore
+1
-0
src/main/java/de/hochschule_trier/sis/App.java
src/main/java/de/hochschule_trier/sis/App.java
+7
-7
src/test/java/de/hochschule_trier/sis/AppTest.java
src/test/java/de/hochschule_trier/sis/AppTest.java
+23
-27
No files found.
.gitignore
View file @
979c233c
.gradle/
/bin/
src/main/java/de/hochschule_trier/sis/App.java
View file @
979c233c
...
...
@@ -5,11 +5,11 @@ package de.hochschule_trier.sis;
*
*/
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
}
public
int
on
e
()
{
return
(
int
)
Math
.
round
(
Math
.
random
()
);
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
}
public
boolean
mayb
e
()
{
return
((
int
)
Math
.
round
(
Math
.
random
())
==
1
);
}
}
src/test/java/de/hochschule_trier/sis/AppTest.java
View file @
979c233c
...
...
@@ -7,33 +7,29 @@ import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public
class
AppTest
extends
TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public
AppTest
(
String
testName
)
{
super
(
testName
);
}
public
class
AppTest
extends
TestCase
{
/**
* Create the test case
*
* @param testName
* name of the test case
*/
public
AppTest
(
String
testName
)
{
super
(
testName
);
}
/**
* @return the suite of tests being tested
*/
public
static
Test
suite
()
{
return
new
TestSuite
(
AppTest
.
class
);
}
/**
* @return the suite of tests being tested
*/
public
static
Test
suite
()
{
return
new
TestSuite
(
AppTest
.
class
);
}
/**
* Rigourous Test :-)
*/
public
void
testApp
()
{
App
app
=
new
App
();
assertEquals
(
1
,
app
.
one
());
}
/**
* Rigourous Test :-)
*/
public
void
testApp
()
{
App
app
=
new
App
();
assertTrue
(
app
.
maybe
());
}
}
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