Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vivek Y Patel
HW_Project1
Commits
1cd95ec2
Commit
1cd95ec2
authored
Feb 22, 2014
by
Vivek Y Patel
Browse files
intial
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
HelloWorld.java
0 → 100644
View file @
1cd95ec2
import
java.util.*
;
public
class
HelloWorld
{
String
message
;
public
HelloWorld
()
{
message
=
"Hello World!"
;
}
public
String
getM
()
{
return
message
;
}
}
\ No newline at end of file
HelloWorldTest.java
0 → 100644
View file @
1cd95ec2
import
org.junit.Assert
;
import
org.junit.Before
;
import
org.junit.Test
;
public
class
HelloWorldTest
{
/** A test that always fails. **/
@Test
public
void
helloTest
()
{
HelloWorld
hw
=
new
HelloWorld
();
String
output
=
hw
.
getM
();
Assert
.
assertEquals
(
"Hello World!"
,
output
);
}
}
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