Unit Testing. and. JUnit
|
|
|
- Opal Cox
- 9 years ago
- Views:
Transcription
1 Unit Testing and JUnit
2 Problem area Code components must be tested! Confirms that your code works Components must be tested t in isolation A functional test can tell you that a bug exists in the implementation pe e tato A unit test tells you where the bug is located <using> Component A <using> Test failure! But where is the bug? Component B Component C
3 Example: The Calculator public interface Calculator int add( int number1, int number2 ); int multiply( int number1, int number2 ); public class DefaultCalculator implements Calculator public int add( int number1, int number2 ) return number1 + number2; public int multiply( int number1, int number2 ) return number1 * number2;
4 Approaches to unit testing Write a small command-line program, enter values, and verify output Involves your ability to type numbers Requires skills in mental calculation Doesn t verify yyour code when its released
5 Approaches to unit testing Write a simple test program Objective and preserves testing efforts Requires you to monitor the screen for error messages Inflexible when more tests are needed public class TestCalculator public static void main( String[] args ) Calculator calculator = new DefaultCalculator(); int result = calculator.add( 8, 7 ); if ( result!= 15 ) System.out.println( Wrong result: + result );
6 The preferred solution Use a unit testing framework like JUnit A unit is the smallest testable component in an application A unit is in most cases a method A unit does not depend d on other components which h are not unit tested themselves Focus on whether a method is following its API contract Component A Unit test A <using> <using> Unit test B Component B Component C Unit test C
7 JUnit De facto standard for developing unit tests in Java One of the most important Java libraries ever developed Made unit testing easy and popular among developers Two techniques: Extending the TestCase class (prior to version 4) Using Java annotations (after version 4)
8 Extending the TestCase class Your test class should extend the TestCase class Will find and execute all methods starting with test in your test t class Lets you set up a test fixture by overriding the setup and teardown methods Provides methods for verifying method output through the Assert class
9 Test fixtures Tests may require common resources to be set up Complex data structures Database connections A fixture is a set of common needed resources Common setup code inside tests doesn t make sense A fixture can be created by overriding the setup and teardown methods from TestCase setup is invoked before each test, teardown after setup() testxxx() teardown() TestCase lifecycle
10 JUnit Calculator test Import TestCase Extend TestCase Override setup() Make methods that begin with test import junit.framework.testcase; public class CalculatorTest extends TestCase Calculator calculator; public void setup() calculator = new DefaultCalculator(); public void testadd() int sum = calculator.add( 8, 7 ); Use assertequals to assertequals( s( sum, 15 ); verify output
11 Example: The EventDAO Event object public class Event() private int id; private String title; private Date date; // constructors // get and set methods EventDAO interface public interface EventDAO int saveevent( Event event ); Event getevent( int id ); void deleteevent( Event event );
12 Fixture in EventDAOTest Overrides setup(), will be invoked before each test public class EventDAOTest extends TestCase private EventDAO eventdao; private Date date; private Event event; ; public void setup() eventdao = new MemoryEventDAO(); Instantiates an EventDAO, Date, and Event for use in test methods Calendar calendar = Calendar.getInstance(); calendar.set( 2007, Calendar.NOVEMBER, 10 ); date = calendar.gettime(); event = new Event( U2 concert, date ); Using the EventDAO and Event inside a test public void testaddevent() int id = eventdao.saveevent( event ); // more testing code follows // more test methods
13 The Assert class Contains methods for testing whether Conditions are true or false Objects are equal or not Objects are null or not If the test fails, an AssertionFailedError is thrown All methods have overloads for various parameter types Methods available because TestCase inherits Assert <inherits> Assert <inherits> TestCase EventDAOTest
14 Assert methods Method Description asserttrue( boolean ) Asserts that a condition is true. assertfalse( boolean ) Asserts that a condition is false. assertequals( Object, Object ) Asserts that two objects are equal. assertnotnull( Object ) Asserts that an object is not null. assertnull( Object ) Asserts that an object is null. assertsame( Object, Object ) Asserts that two references refer to the same object. assertnotsame( Object, Object ) Asserts that two references do not refer to the same object. fail( String ) Asserts that a test fails, and prints the given message.
15 Assert in EventDAOTest Descriptive name following the testxxx convention public void testsaveevent() int id = eventdao.saveevent( event ); Asserts that the saved object is equal to the retrieved object event = eventdao.getevent( id ); assertequals( event.getid(), id ); assertequals( event.gettitle(), U2 concert ); Saves and retrieves an Event with the generated identifier public void testgetevent() int id = eventdao.saveevent( event ); event = eventdao.getevent( id ); An object is expected assertnotnull( event ); Asserts that null is returned when no object exists event = eventdao.getevent( -1 ); assertnull( event );
16 Using Java annotations No need to follow JUnit naming conventions Tests identified by annotation Fixture methods identified annotations Class-scoped fixture Identified by annotations Useful for setting up expensive resources, but be careful... Ignored tests s Identified by annotation Useful for slow tests and tests failing for reasons beyond you Timed tests Identified by providing a timeout=500 ) Useful for benchmarking and network testing
17 EventDAOTest with annotations Assert imported statically import static Fixture method identified d public void init() by annotation eventdao = new MemoryEventDAO(); event = new Event( U2 concert, date Test identified by public void saveevent() annotation. Test signature is equal to method signature. int id = eventdao.saveevent( event ); event = eventdao.getevent( id ); assertequals( event.getid(), id ); Test Public void getevent() // Test stuff...
18 Testing Exceptions Methods may be required to throw exceptions Expected exception can be declared as an expected = UnsupportedOperationException.class ) Annotation declares that expected = UnsupportedOperationException.class ) exception of class public void dividebyzero() UnsupportedOperationException is supposed to be thrown calculator.divide( 4, 0 );
19 Running JUnit Textual test runner Used from the command line Easy to run Integrate with Eclipse Convenient, integrated testing within your development environment! Integrate with Maven Gets included in the build lifecycle!
20 JUnit with Eclipse Eclipse features a JUnit view Provides an informativ GUI displaying test summaries Lets you edit the code, compile and test without leaving the Eclipse environment
21 JUnit with Maven Maven provides support for automated unit testing through JUnit Unit testing ti is included d in the build lifecyclel Verifies that existing components work when other components are added or changed Add dependency to POM to put JUnit on the classpath <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.4</version> </dependency> Execute the Maven test phase $ mvn test
22 JUnit with Maven Maven requires all test-class names to contain Test Standard directory for test classes is src/test/java Maven will execute all tests for you The test phase is mapped to the Surefire plugin Surefire will generate reports based on your test t runs Reports are located in target/surefire-reports
23 Best practises One unit test for each tested method Makes debugging easier Easier to maintain i Choose descriptive test method names TestCase: Use the testxxx naming convention Annotations: Use the method signature of the tested method Automate your test execution If you add or change features, the old ones must still work Also called regression testing Test more than the happy path Out-of-domain values Boundary conditions
24 Advantages of unit testing Improves debugging Easy to track down bugs Facilitates t refactoring Verifies that existing features still work while changing the code structure Enables teamwork Lets you deliver tested components without waiting for whole application to finish Promotes object oriented design Requires your code to be divided in small, re-usable units Serving as developer documentation Unit ittests t are samples that tdemonstrates t usage of fthe API
25 Resources Vincent Massol: JUnit in Action Two free sample chapters JUnit home page Articles and forum Articles
Unit Testing and JUnit
Unit Testing and JUnit Testing Objectives Tests intended to find errors Errors should be found quickly Good test cases have high p for finding a yet undiscovered error Successful tests cause program failure,
Slides prepared by : Farzana Rahman TESTING WITH JUNIT IN ECLIPSE
TESTING WITH JUNIT IN ECLIPSE 1 INTRODUCTION The class that you will want to test is created first so that Eclipse will be able to find that class under test when you build the test case class. The test
+ Introduction to JUnit. IT323 Software Engineering II By: Mashael Al-Duwais
1 + Introduction to JUnit IT323 Software Engineering II By: Mashael Al-Duwais + What is Unit Testing? 2 A procedure to validate individual units of Source Code Example: A procedure, method or class Validating
Unit Testing JUnit and Clover
1 Unit Testing JUnit and Clover Software Component Technology Agenda for Today 2 1. Testing 2. Main Concepts 3. Unit Testing JUnit 4. Test Evaluation Clover 5. Reference Software Testing 3 Goal: find many
Approach of Unit testing with the help of JUnit
Approach of Unit testing with the help of JUnit Satish Mishra [email protected] About me! Satish Mishra! Master of Electronics Science from India! Worked as Software Engineer,Project Manager,Quality
JUnit. Introduction to Unit Testing in Java
JUnit Introduction to Unit Testing in Java Testing, 1 2 3 4, Testing What Does a Unit Test Test? The term unit predates the O-O era. Unit natural abstraction unit of an O-O system: class or its instantiated
Author: Sascha Wolski Sebastian Hennebrueder http://www.laliluna.de/tutorials.html Tutorials for Struts, EJB, xdoclet and eclipse.
JUnit Testing JUnit is a simple Java testing framework to write tests for you Java application. This tutorial gives you an overview of the features of JUnit and shows a little example how you can write
TESTING WITH JUNIT. Lab 3 : Testing
TESTING WITH JUNIT Lab 3 : Testing Overview Testing with JUnit JUnit Basics Sample Test Case How To Write a Test Case Running Tests with JUnit JUnit plug-in for NetBeans Running Tests in NetBeans Testing
Licensed for viewing only. Printing is prohibited. For hard copies, please purchase from www.agileskills.org
Unit Test 301 CHAPTER 12Unit Test Unit test Suppose that you are writing a CourseCatalog class to record the information of some courses: class CourseCatalog { CourseCatalog() { void add(course course)
JUnit Automated Software Testing Framework. Jeff Offutt. SWE 437 George Mason University 2008. Thanks in part to Aynur Abdurazik. What is JUnit?
JUnit Automated Software Testing Framework Jeff Offutt SWE 437 George Mason University 2008 Thanks in part to Aynur Abdurazik What is JUnit? Open source Java testing framework used to write and run repeatable
Java course - IAG0040. Unit testing & Agile Software Development
Java course - IAG0040 Unit testing & Agile Software Development 2011 Unit tests How to be confident that your code works? Why wait for somebody else to test your code? How to provide up-to-date examples
UNIT TESTING. Written by Patrick Kua Oracle Australian Development Centre Oracle Corporation
UNIT TESTING Written by Patrick Kua Oracle Australian Development Centre Oracle Corporation TABLE OF CONTENTS 1 Overview..1 1.1 Document Purpose..1 1.2 Target Audience1 1.3 References.1 2 Testing..2 2.1
Unit-testing with JML
Métodos Formais em Engenharia de Software Unit-testing with JML José Carlos Bacelar Almeida Departamento de Informática Universidade do Minho MI/MEI 2008/2009 1 Talk Outline Unit Testing - software testing
UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division. P. N. Hilfinger
UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division CS 61B Fall 2014 P. N. Hilfinger Unit Testing with JUnit 1 The Basics JUnit is a testing framework
Software Quality Exercise 2
Software Quality Exercise 2 Testing and Debugging 1 Information 1.1 Dates Release: 12.03.2012 12.15pm Deadline: 19.03.2012 12.15pm Discussion: 26.03.2012 1.2 Formalities Please submit your solution as
JUnit - A Whole Lot of Testing Going On
JUnit - A Whole Lot of Testing Going On Advanced Topics in Java Khalid Azim Mughal [email protected] http://www.ii.uib.no/~khalid Version date: 2006-09-04 ATIJ JUnit - A Whole Lot of Testing Going On 1/51
Plugin JUnit. Contents. Mikaël Marche. November 18, 2005
Plugin JUnit Mikaël Marche November 18, 2005 JUnit is a Java API enabling to describe unit tests for a Java application. The JUnit plugin inside Salomé-TMF enables one to execute automatically JUnit tests
Testing, Debugging, and Verification
Testing, Debugging, and Verification Testing, Part II Moa Johansson 10 November 2014 TDV: Testing /GU 141110 1 / 42 Admin Make sure you are registered for the course. Otherwise your marks cannot be recorded.
Java Unit testing with JUnit 4.x in Eclipse
Lars Vogel Version 0.2 Copyright 2007 Lars Vogel 30.06.2007 Abstract This article gives a short overview of JUnit 4.x and its usage within Eclipse. You should be able to run tests
Using JUnit in SAP NetWeaver Developer Studio
Using JUnit in SAP NetWeaver Developer Studio Applies to: This article applies to SAP NetWeaver Developer Studio and JUnit. Summary Test-driven development helps us meet your deadlines by eliminating debugging
Table of Contents. LESSON: The JUnit Test Tool...1. Subjects...2. Testing 123...3. What JUnit Provides...4. JUnit Concepts...5
Table of Contents LESSON: The JUnit Test Tool...1 Subjects...2 Testing 123...3 What JUnit Provides...4 JUnit Concepts...5 Example Testing a Queue Class...6 Example TestCase Class for Queue...7 Example
CI/CD Cheatsheet. Lars Fabian Tuchel Date: 18.March 2014 DOC:
CI/CD Cheatsheet Title: CI/CD Cheatsheet Author: Lars Fabian Tuchel Date: 18.March 2014 DOC: Table of Contents 1. Build Pipeline Chart 5 2. Build. 6 2.1. Xpert.ivy. 6 2.1.1. Maven Settings 6 2.1.2. Project
Unit Testing & JUnit
Unit Testing & JUnit Lecture Outline Communicating your Classes Introduction to JUnit4 Selecting test cases UML Class Diagrams Rectangle height : int width : int resize(double,double) getarea(): int getperimeter():int
Tools for Integration Testing
Tools for Integration Testing What is integration ing? Unit ing is ing modules individually A software module is a self-contained element of a system Then modules need to be put together to construct the
Unit Testing with FlexUnit. by John Mason [email protected]
Unit Testing with FlexUnit by John Mason [email protected] So why Test? - A bad release of code or software will stick in people's minds. - Debugging code is twice as hard as writing the code in the
Effective unit testing with JUnit
Effective unit testing with JUnit written by Eric M. Burke [email protected] Copyright 2000, Eric M. Burke and All rights reserved last revised 12 Oct 2000 extreme Testing 1 What is extreme Programming
Test Driven Development
Software Development Best Practices Test Driven Development http://www.construx.com 1999, 2006 Software Builders Inc. All Rights Reserved. Software Development Best Practices Test Driven Development, What
Designing with Exceptions. CSE219, Computer Science III Stony Brook University http://www.cs.stonybrook.edu/~cse219
Designing with Exceptions CSE219, Computer Science III Stony Brook University http://www.cs.stonybrook.edu/~cse219 Testing vs. Debugging Testing Coding Does the code work properly YES NO 2 Debugging Testing
Software project management. and. Maven
Software project management and Maven Problem area Large software projects usually contain tens or even hundreds of projects/modules Will become messy if the projects don t adhere to some common principles
CSE 326: Data Structures. Java Generics & JUnit. Section notes, 4/10/08 slides by Hal Perkins
CSE 326: Data Structures Java Generics & JUnit Section notes, 4/10/08 slides by Hal Perkins Type-Safe Containers Idea a class or interface can have a type parameter: public class Bag { private E item;
Writing Self-testing Java Classes with SelfTest
Writing Self-testing Java Classes with SelfTest Yoonsik Cheon TR #14-31 April 2014 Keywords: annotation; annotation processor; test case; unit test; Java; JUnit; SelfTest. 1998 CR Categories: D.2.3 [Software
Jemmy tutorial. Introduction to Jemmy testing framework. Pawel Prokop. March 14, 2012. [email protected]
tutorial Introduction to testing framework [email protected] http://prokop.uek.krakow.pl March 14, 2012 Recording tests Testing frameworks Summary Manualy testing error prone slow and not efficient
SpiraTest / SpiraTeam Automated Unit Testing Integration & User Guide Inflectra Corporation
SpiraTest / SpiraTeam Automated Unit Testing Integration & User Guide Inflectra Corporation Date: October 3rd, 2014 Contents 1. Introduction... 1 2. Integrating with NUnit... 2 3. Integrating with JUnit...
Preet raj Core Java and Databases CS4PR. Time Allotted: 3 Hours. Final Exam: Total Possible Points 75
Preet raj Core Java and Databases CS4PR Time Allotted: 3 Hours Final Exam: Total Possible Points 75 Q1. What is difference between overloading and overriding? 10 points a) In overloading, there is a relationship
Introduction to C Unit Testing (CUnit) Brian Nielsen Arne Skou
Introduction to C Unit Testing (CUnit) Brian Nielsen Arne Skou {bnielsen ask}@cs.auc.dk Unit Testing Code that isn t tested doesn t work Code that isn t regression tested suffers from code rot (breaks
Hands on exercise for
Hands on exercise for João Miguel Pereira 2011 0 Prerequisites, assumptions and notes Have Maven 2 installed in your computer Have Eclipse installed in your computer (Recommended: Indigo Version) I m assuming
Capabilities of a Java Test Execution Framework by Erick Griffin
Capabilities of a Java Test Execution Framework by Erick Griffin Here we discuss key properties and capabilities of a Java Test Execution Framework for writing and executing discrete Java tests for testing
Java Interview Questions and Answers
1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java
www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk
CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling
A Practical Guide to Test Case Types in Java
Software Tests with Faktor-IPS Gunnar Tacke, Jan Ortmann (Dokumentversion 203) Overview In each software development project, software testing entails considerable expenses. Running regression tests manually
Announcement. SOFT1902 Software Development Tools. Today s Lecture. Version Control. Multiple iterations. What is Version Control
SOFT1902 Software Development Tools Announcement SOFT1902 Quiz 1 in lecture NEXT WEEK School of Information Technologies 1 2 Today s Lecture Yes: we have evolved to the point of using tools Version Control
Introduction to unit testing with Java, Eclipse and Subversion
Introduction to unit testing with Java, Eclipse and Subversion Table of Contents 1. About Unit Tests... 2 1.1. Introduction... 2 1.2. Unit tests frameworks... 3 2. A first test class... 4 2.1. Problem
Software project management. and. Maven
Software project management and Maven Problem area Large software projects usually contain tens or even hundreds of projects/modules Will become messy and incomprehensible ibl if the projects don t adhere
Aspect Oriented Programming. with. Spring
Aspect Oriented Programming with Spring Problem area How to modularize concerns that span multiple classes and layers? Examples of cross-cutting concerns: Transaction management Logging Profiling Security
Tes$ng Hadoop Applica$ons. Tom Wheeler
Tes$ng Hadoop Applica$ons Tom Wheeler About The Presenter Tom Wheeler Software Engineer, etc.! Greater St. Louis Area Information Technology and Services! Current:! Past:! Senior Curriculum Developer at
Upping the game. Improving your software development process
Upping the game Improving your software development process John Ferguson Smart Principle Consultant Wakaleo Consulting Email: [email protected] Web: http://www.wakaleo.com Twitter: wakaleo Presentation
Test-Driven Development
Test-Driven Development An Introduction Mattias Ståhlberg [email protected] Debugging sucks. Testing rocks. Contents 1. What is unit testing? 2. What is test-driven development? 3. Example 4.
Testing Tools Content (Manual with Selenium) Levels of Testing
Course Objectives: This course is designed to train the fresher's, intermediate and professionals on testing with the concepts of manual testing and Automation with Selenium. The main focus is, once the
Going Interactive: Combining Ad-Hoc and Regression Testing
Going Interactive: Combining Ad-Hoc and Regression Testing Michael Kölling 1, Andrew Patterson 2 1 Mærsk Mc-Kinney Møller Institute, University of Southern Denmark, Denmark [email protected] 2 Deakin University,
Tutorial IV: Unit Test
Tutorial IV: Unit Test What is Unit Test Three Principles Testing frameworks: JUnit for Java CppUnit for C++ Unit Test for Web Service http://www.cs.toronto.edu/~yijun/csc408h/ handouts/unittest-howto.html
AP Computer Science Java Subset
APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall
Maven or how to automate java builds, tests and version management with open source tools
Maven or how to automate java builds, tests and version management with open source tools Erik Putrycz Software Engineer, Apption Software [email protected] Outlook What is Maven Maven Concepts and
Chapter 1: Web Services Testing and soapui
Chapter 1: Web Services Testing and soapui SOA and web services Service-oriented solutions Case study Building blocks of SOA Simple Object Access Protocol Alternatives to SOAP REST Java Script Object Notation
Build management & Continuous integration. with Maven & Hudson
Build management & Continuous integration with Maven & Hudson About me Tim te Beek [email protected] Computer science student Bioinformatics Research Support Overview Build automation with Maven Repository
LAB4 Making Classes and Objects
LAB4 Making Classes and Objects Objective The main objective of this lab is class creation, how its constructer creation, object creation and instantiation of objects. We will use the definition pane to
Tutorial for Spring DAO with JDBC
Overview Tutorial for Spring DAO with JDBC Prepared by: Nigusse Duguma This tutorial demonstrates how to work with data access objects in the spring framework. It implements the Spring Data Access Object
Survey of Unit-Testing Frameworks. by John Szakmeister and Tim Woods
Survey of Unit-Testing Frameworks by John Szakmeister and Tim Woods Our Background Using Python for 7 years Unit-testing fanatics for 5 years Agenda Why unit test? Talk about 3 frameworks: unittest nose
Unit testing with JUnit and CPPUnit. Krzysztof Pietroszek [email protected]
Unit testing with JUnit and CPPUnit Krzysztof Pietroszek [email protected] Old-fashioned low-level testing Stepping through a debugger drawbacks: 1. not automatic 2. time-consuming Littering code
BDD FOR AUTOMATING WEB APPLICATION TESTING. Stephen de Vries
BDD FOR AUTOMATING WEB APPLICATION TESTING Stephen de Vries www.continuumsecurity.net INTRODUCTION Security Testing of web applications, both in the form of automated scanning and manual security assessment
Agile.NET Development Test-driven Development using NUnit
Agile.NET Development Test-driven Development using NUnit Jason Gorman Test-driven Development Drive the design and construction of your code on unit test at a time Write a test that the system currently
The junit Unit Tes(ng Tool for Java
Java Tes(ng Tools Java Tes(ng Tools junit is a tes(ng harness for unit tes(ng. emma is a code coverage tool. The tools can be used in concert to provide statement and branch coverage reports during the
IBM Tivoli Workload Scheduler Integration Workbench V8.6.: How to customize your automation environment by creating a custom Job Type plug-in
IBM Tivoli Workload Scheduler Integration Workbench V8.6.: How to customize your automation environment by creating a custom Job Type plug-in Author(s): Marco Ganci Abstract This document describes how
Tutorial for Creating Resources in Java - Client
Tutorial for Creating Resources in Java - Client Overview Overview 1. Preparation 2. Creation of Eclipse Plug-ins 2.1 The flight plugin 2.2 The plugin fragment for unit tests 3. Create an integration test
Improve your tests with Mutation Testing. Nicolas Fränkel
Improve your tests with Mutation Testing Nicolas Fränkel Me, Myself and I Developer & Architect As Consultant Teacher/trainer Blogger Speaker Book Author @nicolas_frankel 2 Shameless self-promotion @nicolas_frankel
Automated performance testing using Maven & JMeter. George Barnett, Atlassian Software Systems @georgebarnett
Automated performance testing using Maven & JMeter George Barnett, Atlassian Software Systems @georgebarnett Create controllable JMeter tests Configure Maven to create a repeatable cycle Run this build
First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science
First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca
INTRODUCTION TO OBJECTIVE-C CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 12 09/29/2011
INTRODUCTION TO OBJECTIVE-C CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 12 09/29/2011 1 Goals of the Lecture Present an introduction to Objective-C 2.0 Coverage of the language will be INCOMPLETE
CS170 Lab 11 Abstract Data Types & Objects
CS170 Lab 11 Abstract Data Types & Objects Introduction: Abstract Data Type (ADT) An abstract data type is commonly known as a class of objects An abstract data type in a program is used to represent (the
Getting Started with the Internet Communications Engine
Getting Started with the Internet Communications Engine David Vriezen April 7, 2014 Contents 1 Introduction 2 2 About Ice 2 2.1 Proxies................................. 2 3 Setting Up ICE 2 4 Slices 2
Software infrastructure for Java development projects
Tools that can optimize your development process Software infrastructure for Java development projects Presentation plan Software Development Lifecycle Tools What tools exist? Where can tools help? Practical
the first thing that comes to mind when you think about unit testing? If you re a Java developer, it s probably JUnit, since the
By Matt Love W hat s the first thing that comes to mind when you think about unit testing? If you re a Java developer, it s probably JUnit, since the tool is generally recognized as the de facto standard
Unit Testing with zunit
IBM Software Group Rational Developer for System z Unit Testing with zunit Jon Sayles / IBM - [email protected] IBM Corporation IBM Trademarks and Copyrights Copyright IBM Corporation 2013, 2014. All
Android Application Testing Guide
Android Application Testing Guide Diego Torres Milano Chapter No.1 "Getting Started with Testing" In this package, you will find: A Biography of the author of the book A preview chapter from the book,
Tutorial 7 Unit Test and Web service deployment
Tutorial 7 Unit Test and Web service deployment junit, Axis Last lecture On Software Reuse The concepts of software reuse: to use the knowledge more than once Classical software reuse techniques Component-based
Java Application Developer Certificate Program Competencies
Java Application Developer Certificate Program Competencies After completing the following units, you will be able to: Basic Programming Logic Explain the steps involved in the program development cycle
PHPUnit Manual. Sebastian Bergmann
PHPUnit Manual Sebastian Bergmann PHPUnit Manual Sebastian Bergmann Publication date Edition for PHPUnit 3.4. Updated on 2010-09-19. Copyright 2005, 2006, 2007, 2008, 2009, 2010 Sebastian Bergmann This
Test Driven Development
Test Driven Development Introduction Test Driven development (TDD) is a fairly recent (post 2000) design approach that originated from the Extreme Programming / Agile Methodologies design communities.
Kohsuke Kawaguchi Sun Microsystems, Inc. hk2.dev.java.net, glassfish.dev.java.net. Session ID
1 Kohsuke Kawaguchi Sun Microsystems, Inc. hk2.dev.java.net, glassfish.dev.java.net Session ID 2 What s GlassFish v3? JavaEE 6 API for REST (JAX-RS) Better web framework support (Servlet 3.0) WebBeans,
ID TECH UniMag Android SDK User Manual
ID TECH UniMag Android SDK User Manual 80110504-001-A 12/03/2010 Revision History Revision Description Date A Initial Release 12/03/2010 2 UniMag Android SDK User Manual Before using the ID TECH UniMag
Appium mobile test automation
Appium mobile test automation for Google Android and Apple ios Last updated: 4 January 2016 Pepgo Limited, 71-75 Shelton Street, Covent Garden, London, WC2H 9JQ, United Kingdom Contents About this document...
Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013
Masters programmes in Computer Science and Information Systems Object-Oriented Design and Programming Sample module entry test xxth December 2013 This sample paper has more questions than the real paper
Running and Testing Java EE Applications in Embedded Mode with JupEEter Framework
JOURNAL OF APPLIED COMPUTER SCIENCE Vol. 21 No. 1 (2013), pp. 53-69 Running and Testing Java EE Applications in Embedded Mode with JupEEter Framework Marcin Kwapisz 1 1 Technical University of Lodz Faculty
J a v a Quiz (Unit 3, Test 0 Practice)
Computer Science S-111a: Intensive Introduction to Computer Science Using Java Handout #11 Your Name Teaching Fellow J a v a Quiz (Unit 3, Test 0 Practice) Multiple-choice questions are worth 2 points
Fail early, fail often, succeed sooner!
Fail early, fail often, succeed sooner! Contents Beyond testing Testing levels Testing techniques TDD = fail early Automate testing = fail often Tools for testing Acceptance tests Quality Erja Nikunen
Rake Task Management Essentials
Rake Task Management Essentials Andrey Koleshko Chapter No. 8 "Testing Rake Tasks" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter NO.8 "Testing
RUP. Development Process. Iterative Process (spiral) Waterfall Development Process. Agile Development Process. Well-known development processes
Well-known development processes Development Process RUP (Rational Unified Process) (Capability Maturity Model Integration) Agile / XP (extreme Programming) Waterfall Development Process Iterative Process
Vim, Emacs, and JUnit Testing. Audience: Students in CS 331 Written by: Kathleen Lockhart, CS Tutor
Vim, Emacs, and JUnit Testing Audience: Students in CS 331 Written by: Kathleen Lockhart, CS Tutor Overview Vim and Emacs are the two code editors available within the Dijkstra environment. While both
Android Environment SDK
Part 2-a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 Android Environment: Eclipse & ADT The Android
PHPUnit Manual. Sebastian Bergmann
PHPUnit Manual Sebastian Bergmann PHPUnit Manual Sebastian Bergmann Publication date Edition for PHPUnit 3.5. Updated on 2011-04-05. Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011 Sebastian Bergmann
