Enviar pesquisa
Carregar
Test Driven Development and JUnit
•
Transferir como PPT, PDF
•
4 gostaram
•
6,169 visualizações
Somenath Mukhopadhyay
Seguir
I just tried to explain TDD through JUnit
Leia menos
Leia mais
Tecnologia
Educação
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 25
Baixar agora
Recomendados
An introduction to Maven
An introduction to Maven
Joao Pereira
Présentation de Django @ Orange Labs (FR)
Présentation de Django @ Orange Labs (FR)
Martin Latrille
[JWPA-1]의존성 주입(Dependency injection)
[JWPA-1]의존성 주입(Dependency injection)
Young-Ho Cho
Présentation du projet IPTV
Présentation du projet IPTV
Mohammed JAITI
Intégration continue et déploiement continue avec Jenkins
Intégration continue et déploiement continue avec Jenkins
Kokou Gaglo
php2 : formulaire-session-PDO
php2 : formulaire-session-PDO
Abdoulaye Dieng
Maven
Maven
Xavier Carpentier
Développement web mobile avec IONIC 2
Développement web mobile avec IONIC 2
Jean David Olekhnovitch
Recomendados
An introduction to Maven
An introduction to Maven
Joao Pereira
Présentation de Django @ Orange Labs (FR)
Présentation de Django @ Orange Labs (FR)
Martin Latrille
[JWPA-1]의존성 주입(Dependency injection)
[JWPA-1]의존성 주입(Dependency injection)
Young-Ho Cho
Présentation du projet IPTV
Présentation du projet IPTV
Mohammed JAITI
Intégration continue et déploiement continue avec Jenkins
Intégration continue et déploiement continue avec Jenkins
Kokou Gaglo
php2 : formulaire-session-PDO
php2 : formulaire-session-PDO
Abdoulaye Dieng
Maven
Maven
Xavier Carpentier
Développement web mobile avec IONIC 2
Développement web mobile avec IONIC 2
Jean David Olekhnovitch
Programmation orientée objet avancée
Programmation orientée objet avancée
Mahfoud EL HOUDAIGUI
Rapport Sockets en Java
Rapport Sockets en Java
Soukaina Boujadi
Qt State Machine Framework
Qt State Machine Framework
account inactive
Alphorm.com Java 8: les nouveautés
Alphorm.com Java 8: les nouveautés
Alphorm
Routage
Routage
Stany Mwamba
Intégration de SonarQube dans GitLab ci
Intégration de SonarQube dans GitLab ci
wiemfourati
Android media codec 사용하기
Android media codec 사용하기
Taehwan kwon
Java RMI
Java RMI
Heithem Abbes
트리거 시스템
트리거 시스템
승형 이
OSGi Presentation
OSGi Presentation
Michal Malohlava
POO Java Introduction
POO Java Introduction
Mouna Torjmen
도메인 주도 설계 (Domain Driven Design)
도메인 주도 설계 (Domain Driven Design)
Ashal aka JOKER
Exploring Docker in CI/CD
Exploring Docker in CI/CD
Henry Huang
Cours php
Cours php
csskaled
Support developpement applications mobiles avec ionic v3 et v4
Support developpement applications mobiles avec ionic v3 et v4
ENSET, Université Hassan II Casablanca
BUKU AKTIVITI SJKC TAHUN 1 JILID 2
BUKU AKTIVITI SJKC TAHUN 1 JILID 2
npc3932
Soa
Soa
m.dubucq
Cours java
Cours java
Zakaria Mouammin
[JWAP-2] DI & Spring
[JWAP-2] DI & Spring
Young-Ho Cho
Développement mobile multi-plateforme avec Flutter
Développement mobile multi-plateforme avec Flutter
erick G
JUnit- A Unit Testing Framework
JUnit- A Unit Testing Framework
Onkar Deshpande
Unit testing with Junit
Unit testing with Junit
Valerio Maggio
Mais conteúdo relacionado
Mais procurados
Programmation orientée objet avancée
Programmation orientée objet avancée
Mahfoud EL HOUDAIGUI
Rapport Sockets en Java
Rapport Sockets en Java
Soukaina Boujadi
Qt State Machine Framework
Qt State Machine Framework
account inactive
Alphorm.com Java 8: les nouveautés
Alphorm.com Java 8: les nouveautés
Alphorm
Routage
Routage
Stany Mwamba
Intégration de SonarQube dans GitLab ci
Intégration de SonarQube dans GitLab ci
wiemfourati
Android media codec 사용하기
Android media codec 사용하기
Taehwan kwon
Java RMI
Java RMI
Heithem Abbes
트리거 시스템
트리거 시스템
승형 이
OSGi Presentation
OSGi Presentation
Michal Malohlava
POO Java Introduction
POO Java Introduction
Mouna Torjmen
도메인 주도 설계 (Domain Driven Design)
도메인 주도 설계 (Domain Driven Design)
Ashal aka JOKER
Exploring Docker in CI/CD
Exploring Docker in CI/CD
Henry Huang
Cours php
Cours php
csskaled
Support developpement applications mobiles avec ionic v3 et v4
Support developpement applications mobiles avec ionic v3 et v4
ENSET, Université Hassan II Casablanca
BUKU AKTIVITI SJKC TAHUN 1 JILID 2
BUKU AKTIVITI SJKC TAHUN 1 JILID 2
npc3932
Soa
Soa
m.dubucq
Cours java
Cours java
Zakaria Mouammin
[JWAP-2] DI & Spring
[JWAP-2] DI & Spring
Young-Ho Cho
Développement mobile multi-plateforme avec Flutter
Développement mobile multi-plateforme avec Flutter
erick G
Mais procurados
(20)
Programmation orientée objet avancée
Programmation orientée objet avancée
Rapport Sockets en Java
Rapport Sockets en Java
Qt State Machine Framework
Qt State Machine Framework
Alphorm.com Java 8: les nouveautés
Alphorm.com Java 8: les nouveautés
Routage
Routage
Intégration de SonarQube dans GitLab ci
Intégration de SonarQube dans GitLab ci
Android media codec 사용하기
Android media codec 사용하기
Java RMI
Java RMI
트리거 시스템
트리거 시스템
OSGi Presentation
OSGi Presentation
POO Java Introduction
POO Java Introduction
도메인 주도 설계 (Domain Driven Design)
도메인 주도 설계 (Domain Driven Design)
Exploring Docker in CI/CD
Exploring Docker in CI/CD
Cours php
Cours php
Support developpement applications mobiles avec ionic v3 et v4
Support developpement applications mobiles avec ionic v3 et v4
BUKU AKTIVITI SJKC TAHUN 1 JILID 2
BUKU AKTIVITI SJKC TAHUN 1 JILID 2
Soa
Soa
Cours java
Cours java
[JWAP-2] DI & Spring
[JWAP-2] DI & Spring
Développement mobile multi-plateforme avec Flutter
Développement mobile multi-plateforme avec Flutter
Destaque
JUnit- A Unit Testing Framework
JUnit- A Unit Testing Framework
Onkar Deshpande
Unit testing with Junit
Unit testing with Junit
Valerio Maggio
JUnit & Mockito, first steps
JUnit & Mockito, first steps
Renato Primavera
JUnit Presentation
JUnit Presentation
priya_trivedi
Unit testing with JUnit
Unit testing with JUnit
Thomas Zimmermann
Junit
Junit
Vivek Kulkarni
Test driven development - JUnit basics and best practices
Test driven development - JUnit basics and best practices
Narendra Pathai
JUNit Presentation
JUNit Presentation
Animesh Kumar
Junit
Junit
FAROOK Samath
Introduction to JUnit
Introduction to JUnit
Devvrat Shukla
Unit Testing with JUnit4 by Ravikiran Janardhana
Unit Testing with JUnit4 by Ravikiran Janardhana
Ravikiran J
JUnit 5 - The Next Generation of JUnit - Ted's Tool Time
JUnit 5 - The Next Generation of JUnit - Ted's Tool Time
Ted Vinke
05 junit
05 junit
mha4
Junit
Junit
Manav Prasad
JUnit PowerUp
JUnit PowerUp
James McGivern
JUnit Sample
JUnit Sample
Guilherme Alberto de Moraes
JUnit 4
JUnit 4
Sunil OS
Junit and testNG
Junit and testNG
Марія Русин
JUnit 5 - from Lambda to Alpha and beyond
JUnit 5 - from Lambda to Alpha and beyond
Sam Brannen
Junit 4.0
Junit 4.0
pallavikhandekar212
Destaque
(20)
JUnit- A Unit Testing Framework
JUnit- A Unit Testing Framework
Unit testing with Junit
Unit testing with Junit
JUnit & Mockito, first steps
JUnit & Mockito, first steps
JUnit Presentation
JUnit Presentation
Unit testing with JUnit
Unit testing with JUnit
Junit
Junit
Test driven development - JUnit basics and best practices
Test driven development - JUnit basics and best practices
JUNit Presentation
JUNit Presentation
Junit
Junit
Introduction to JUnit
Introduction to JUnit
Unit Testing with JUnit4 by Ravikiran Janardhana
Unit Testing with JUnit4 by Ravikiran Janardhana
JUnit 5 - The Next Generation of JUnit - Ted's Tool Time
JUnit 5 - The Next Generation of JUnit - Ted's Tool Time
05 junit
05 junit
Junit
Junit
JUnit PowerUp
JUnit PowerUp
JUnit Sample
JUnit Sample
JUnit 4
JUnit 4
Junit and testNG
Junit and testNG
JUnit 5 - from Lambda to Alpha and beyond
JUnit 5 - from Lambda to Alpha and beyond
Junit 4.0
Junit 4.0
Semelhante a Test Driven Development and JUnit
03 - Prototype Design Pattern - Slideshare.pptx
03 - Prototype Design Pattern - Slideshare.pptx
SubhechhaMajumdar1
Functional Programming You Already Know - Kevlin Henney - Codemotion Rome 2015
Functional Programming You Already Know - Kevlin Henney - Codemotion Rome 2015
Codemotion
Microsrvs testing-slides
Microsrvs testing-slides
Igor Redkach
Design Patterns and Usage
Design Patterns and Usage
Mindfire Solutions
Iterative architecture
Iterative architecture
JoshuaRizzo4
Ian 20150116 java script oop
Ian 20150116 java script oop
LearningTech
Diving in the Flex Data Binding Waters
Diving in the Flex Data Binding Waters
michael.labriola
Functional Java 8 in everyday life
Functional Java 8 in everyday life
Andrea Iacono
Uncommon Design Patterns
Uncommon Design Patterns
Stefano Fago
Ast transformations
Ast transformations
Andres Almiray
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
Matthias Noback
Javascript
Javascript
Gita Kriz
Immutability, and how to do it in JavaScripts
Immutability, and how to do it in JavaScripts
Anton Astashov
Effective Java with Groovy - How Language Influences Adoption of Good Practices
Effective Java with Groovy - How Language Influences Adoption of Good Practices
Naresha K
Thread
Thread
phanleson
Concurrency, Scalability & Fault-tolerance 2.0 with Akka Actors & STM
Concurrency, Scalability & Fault-tolerance 2.0 with Akka Actors & STM
Mario Fusco
Java design patterns
Java design patterns
Shawn Brito
Beyond Design Principles and Patterns
Beyond Design Principles and Patterns
Matthias Noback
Intro to Javascript
Intro to Javascript
Anjan Banda
C++ interview questions
C++ interview questions
arjavi
Semelhante a Test Driven Development and JUnit
(20)
03 - Prototype Design Pattern - Slideshare.pptx
03 - Prototype Design Pattern - Slideshare.pptx
Functional Programming You Already Know - Kevlin Henney - Codemotion Rome 2015
Functional Programming You Already Know - Kevlin Henney - Codemotion Rome 2015
Microsrvs testing-slides
Microsrvs testing-slides
Design Patterns and Usage
Design Patterns and Usage
Iterative architecture
Iterative architecture
Ian 20150116 java script oop
Ian 20150116 java script oop
Diving in the Flex Data Binding Waters
Diving in the Flex Data Binding Waters
Functional Java 8 in everyday life
Functional Java 8 in everyday life
Uncommon Design Patterns
Uncommon Design Patterns
Ast transformations
Ast transformations
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
Javascript
Javascript
Immutability, and how to do it in JavaScripts
Immutability, and how to do it in JavaScripts
Effective Java with Groovy - How Language Influences Adoption of Good Practices
Effective Java with Groovy - How Language Influences Adoption of Good Practices
Thread
Thread
Concurrency, Scalability & Fault-tolerance 2.0 with Akka Actors & STM
Concurrency, Scalability & Fault-tolerance 2.0 with Akka Actors & STM
Java design patterns
Java design patterns
Beyond Design Principles and Patterns
Beyond Design Principles and Patterns
Intro to Javascript
Intro to Javascript
C++ interview questions
C++ interview questions
Mais de Somenath Mukhopadhyay
Significance of private inheritance in C++...
Significance of private inheritance in C++...
Somenath Mukhopadhyay
Arranging the words of a text lexicographically trie
Arranging the words of a text lexicographically trie
Somenath Mukhopadhyay
Generic asynchronous HTTP utility for android
Generic asynchronous HTTP utility for android
Somenath Mukhopadhyay
Copy on write
Copy on write
Somenath Mukhopadhyay
Java concurrency model - The Future Task
Java concurrency model - The Future Task
Somenath Mukhopadhyay
Memory layout in C++ vis a-vis polymorphism and padding bits
Memory layout in C++ vis a-vis polymorphism and padding bits
Somenath Mukhopadhyay
Developing an Android REST client to determine POI using asynctask and integr...
Developing an Android REST client to determine POI using asynctask and integr...
Somenath Mukhopadhyay
Observer pattern
Observer pattern
Somenath Mukhopadhyay
Uml training
Uml training
Somenath Mukhopadhyay
How to create your own background for google docs
How to create your own background for google docs
Somenath Mukhopadhyay
The Designing of a Software System from scratch with the help of OOAD & UML -...
The Designing of a Software System from scratch with the help of OOAD & UML -...
Somenath Mukhopadhyay
Structural Relationship between Content Resolver and Content Provider of Andr...
Structural Relationship between Content Resolver and Content Provider of Andr...
Somenath Mukhopadhyay
Flow of events during Media Player creation in Android
Flow of events during Media Player creation in Android
Somenath Mukhopadhyay
Implementation of a state machine for a longrunning background task in androi...
Implementation of a state machine for a longrunning background task in androi...
Somenath Mukhopadhyay
Tackling circular dependency in Java
Tackling circular dependency in Java
Somenath Mukhopadhyay
Implementation of composite design pattern in android view and widgets
Implementation of composite design pattern in android view and widgets
Somenath Mukhopadhyay
Exception Handling in the C++ Constructor
Exception Handling in the C++ Constructor
Somenath Mukhopadhyay
Active object of Symbian in the lights of client server architecture
Active object of Symbian in the lights of client server architecture
Somenath Mukhopadhyay
Android services internals
Android services internals
Somenath Mukhopadhyay
Android Asynctask Internals vis-a-vis half-sync half-async design pattern
Android Asynctask Internals vis-a-vis half-sync half-async design pattern
Somenath Mukhopadhyay
Mais de Somenath Mukhopadhyay
(20)
Significance of private inheritance in C++...
Significance of private inheritance in C++...
Arranging the words of a text lexicographically trie
Arranging the words of a text lexicographically trie
Generic asynchronous HTTP utility for android
Generic asynchronous HTTP utility for android
Copy on write
Copy on write
Java concurrency model - The Future Task
Java concurrency model - The Future Task
Memory layout in C++ vis a-vis polymorphism and padding bits
Memory layout in C++ vis a-vis polymorphism and padding bits
Developing an Android REST client to determine POI using asynctask and integr...
Developing an Android REST client to determine POI using asynctask and integr...
Observer pattern
Observer pattern
Uml training
Uml training
How to create your own background for google docs
How to create your own background for google docs
The Designing of a Software System from scratch with the help of OOAD & UML -...
The Designing of a Software System from scratch with the help of OOAD & UML -...
Structural Relationship between Content Resolver and Content Provider of Andr...
Structural Relationship between Content Resolver and Content Provider of Andr...
Flow of events during Media Player creation in Android
Flow of events during Media Player creation in Android
Implementation of a state machine for a longrunning background task in androi...
Implementation of a state machine for a longrunning background task in androi...
Tackling circular dependency in Java
Tackling circular dependency in Java
Implementation of composite design pattern in android view and widgets
Implementation of composite design pattern in android view and widgets
Exception Handling in the C++ Constructor
Exception Handling in the C++ Constructor
Active object of Symbian in the lights of client server architecture
Active object of Symbian in the lights of client server architecture
Android services internals
Android services internals
Android Asynctask Internals vis-a-vis half-sync half-async design pattern
Android Asynctask Internals vis-a-vis half-sync half-async design pattern
Último
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Pixlogix Infotech
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Results
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Último
(20)
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Test Driven Development and JUnit
1.
Test Driven Development
vis-à-vis JUnit by Somenath Mukhopadhyay [email_address] Somenath Mukhopadhyay
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
The JUnit Code
import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; public class BookTest extends TestCase { private Book book1; public BookTest(String name) { super(name); } protected void setUp() throws Exception { super.setUp(); book1 = new Book("Som", 10.11); book2 = new Book("Reema", 12.33); book3 = new Book("Som", 10.11); } Contd..... Somenath Mukhopadhyay
23.
The JUnit Code
protected void tearDown() throws Exception { super.tearDown(); book1 = null; book2 = null; book3 = null; } public void testEquals() { assertFalse(book2.equalsBook(book1)); assertTrue(book1.equalsBook(book1)); assertTrue(book1.equalsBook(book3)); } public void testGetPrice() { double price = book1.getPrice(); assertTrue(price == 10.11); } Contd... Somenath Mukhopadhyay
24.
The JUnit Code
public void testSetPrice() { book1.setPrice(15.15); double price = book1.getPrice(); assertTrue(price == 15.15); } public void testGetTitle() { String title = book2.getTitle(); boolean result = title.equals("Reema"); assertTrue(result == true); } public static Test suite(){ TestSuite suite = new TestSuite(); suite.addTest(new BookTest("testEquals")); suite.addTest(new BookTest("testGetTitle")); suite.addTest(new BookTest("testSetPrice")); return suite; } Somenath Mukhopadhyay
25.
Thank You
Baixar agora