Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SeAssg
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KARANVEER SINGH
SeAssg
Commits
86cbf2f0
Commit
86cbf2f0
authored
Jan 20, 2018
by
karan-saroya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JUnit Added
parent
9b461356
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
StockMarket/.classpath
StockMarket/.classpath
+1
-0
StockMarket/.gitignore
StockMarket/.gitignore
+1
-0
StockMarket/Jtest.java
StockMarket/Jtest.java
+16
-0
StockMarket/StockMarket.java
StockMarket/StockMarket.java
+6
-1
No files found.
StockMarket/.classpath
View file @
86cbf2f0
...
...
@@ -2,5 +2,6 @@
<classpath>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"
/>
<classpathentry
kind=
"src"
path=
""
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.junit.JUNIT_CONTAINER/5"
/>
<classpathentry
kind=
"output"
path=
""
/>
</classpath>
StockMarket/.gitignore
View file @
86cbf2f0
/StockMarket.class
/Jtest.class
StockMarket/Jtest.java
0 → 100644
View file @
86cbf2f0
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.*;
import
org.junit.jupiter.api.Test
;
import
junit.framework.Assert
;
class
Jtest
{
@Test
void
test
()
{
StockMarket
obj
=
new
StockMarket
();
int
res
=
obj
.
Add
(
100
,
200
);
assertEquals
(
300
,
res
);
}
}
StockMarket/StockMarket.java
View file @
86cbf2f0
public
class
StockMarket
{
public
class
StockMarket
{
public
int
Add
(
int
a
,
int
b
)
{
return
a
+
b
;
}
public
static
void
main
(
String
[]
args
)
{
...
...
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