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
Cfgmgmtcamp 2023 — eBPF Superpowers
Cfgmgmtcamp 2023 — eBPF Superpowers
Raphaël PINSON
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
Recomendados
Cfgmgmtcamp 2023 — eBPF Superpowers
Cfgmgmtcamp 2023 — eBPF Superpowers
Raphaël PINSON
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
Introduction To UnitTesting & JUnit
Introduction To UnitTesting & JUnit
Mindfire Solutions
Android Unit Tesing at I/O rewind 2015
Android Unit Tesing at I/O rewind 2015
Somkiat Puisungnoen
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
Mais conteúdo relacionado
Destaque
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
Introduction To UnitTesting & JUnit
Introduction To UnitTesting & JUnit
Mindfire Solutions
Android Unit Tesing at I/O rewind 2015
Android Unit Tesing at I/O rewind 2015
Somkiat Puisungnoen
Destaque
(15)
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
Introduction To UnitTesting & JUnit
Introduction To UnitTesting & JUnit
Android Unit Tesing at I/O rewind 2015
Android Unit Tesing at I/O rewind 2015
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
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
Overkill Security
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Khem
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Zilliz
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
lior mazor
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
Zilliz
Último
(20)
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Architecting Cloud Native Applications
Architecting Cloud Native Applications
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
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