Commit 426d96c5 authored by Mohamad Bashar Desoki's avatar Mohamad Bashar Desoki

Introduce git and junit

parent d9196aae
...@@ -11,6 +11,7 @@ target/ ...@@ -11,6 +11,7 @@ target/
*.iws *.iws
*.iml *.iml
*.ipr *.ipr
.idea/*.xml
### Eclipse ### ### Eclipse ###
.apt_generated .apt_generated
......
### 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)
...@@ -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>
......
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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment