Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
PP-01-Threads-Review
Project
Project
Details
Activity
Releases
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
mohamadbashar.disoki
PP-01-Threads-Review
Commits
426d96c5
Commit
426d96c5
authored
Oct 17, 2023
by
Mohamad Bashar Desoki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce git and junit
parent
d9196aae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
0 deletions
+36
-0
.gitignore
.gitignore
+1
-0
Readme.md
Readme.md
+11
-0
pom.xml
pom.xml
+8
-0
JunitTest.java
src/test/java/JunitTest.java
+16
-0
No files found.
.gitignore
View file @
426d96c5
...
@@ -11,6 +11,7 @@ target/
...
@@ -11,6 +11,7 @@ target/
*.iws
*.iws
*.iml
*.iml
*.ipr
*.ipr
.idea/*.xml
### Eclipse ###
### Eclipse ###
.apt_generated
.apt_generated
...
...
Readme.md
0 → 100644
View file @
426d96c5
### Multithreading in Java
*topics:*
*
Why Multithreading
*
Create Thread
-
Thread class
-
Runnable interface
*Some Useful links:*
-
[
Version Control - Git
](
https://docs.github.com/get-started
)
-
[
Automation Test - Junit
](
https://www.tutorialspoint.com/junit/junit_test_framework.htm
)
pom.xml
View file @
426d96c5
...
@@ -8,6 +8,14 @@
...
@@ -8,6 +8,14 @@
<artifactId>
Lec1-Threads
</artifactId>
<artifactId>
Lec1-Threads
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
<dependencies>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.13.2
</version>
</dependency>
</dependencies>
<properties>
<properties>
<maven.compiler.source>
17
</maven.compiler.source>
<maven.compiler.source>
17
</maven.compiler.source>
<maven.compiler.target>
17
</maven.compiler.target>
<maven.compiler.target>
17
</maven.compiler.target>
...
...
src/test/java/JunitTest.java
0 → 100644
View file @
426d96c5
import
junit.framework.TestCase
;
public
class
JunitTest
extends
TestCase
{
protected
int
v1
,
v2
;
protected
void
setUp
(){
v1
=
1
;
v2
=
3
;
}
public
void
testAdd
(){
int
res
=
v1
+
v2
;
assertEquals
(
6
,
res
);
}
}
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