Mockito cookbook : over 65 recipes to get you up and running with unit testing using Mockito / / Marcin Grzejszczak ; cover image by Poonam Nayak |
Autore | Grzejszczak Marcin |
Edizione | [1st edition] |
Pubbl/distr/stampa | Birmingham, [England] : , : Packt Publishing, , 2014 |
Descrizione fisica | 1 online resource (284 p.) |
Disciplina | 621.3981 |
Soggetto topico |
Computer interfaces
User interfaces (Computer systems) |
Soggetto genere / forma | Electronic books. |
ISBN | 1-78398-275-6 |
Formato | Materiale a stampa ![]() |
Livello bibliografico | Monografia |
Lingua di pubblicazione | eng |
Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Mockito; Introduction; Adding Mockito to a project's classpath; Getting started with Mockito for JUnit; Getting started with Mockito for TestNG; Mockito best practices - test behavior not implementation; Adding Mockito hints to exception messages (JUnit) (Experimental); Adding additional Mockito warnings to your tests (JUnit) (Experimental); Chapter 2: Creating Mocks; Introduction; Creating mocks in code; Creating mocks with annotations
Creating mocks with a different default answerCreating mocks with different default answers with annotations; Creating mocks with custom configuration; Creating mocks of final classes with PowerMock; Creating mocks of enums with PowerMock; Chapter 3: Creating Spies and Partial Mocks; Introduction; Creating spies in code; Creating spies with custom configuration; Creating spies using annotations; Creating partial mocks; Creating partial mocks of final classes with delegatesTo(); Creating spies of final classes with PowerMock; Chapter 4: Stubbing Behavior of Mocks; Introduction Using argument matchers for stubbingStubbing methods that return values; Stubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing methods so that they call real methods; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing void methods so that they call real methods; Stubbing final methods with PowerMock; Stubbing static methods with PowerMock; Stubbing object instantiation using PowerMock; Chapter 5: Stubbing Behavior of Spies; Introduction Stubbing methods that return valuesStubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing final methods with PowerMock; Chapter 6: Verifying Test Doubles; Introduction; Verifying the method invocation count with times(); Verifying the method invocation count with atLeast(); Verifying the method invocation count with atMost(); Verifying that interactions never happened Verifying that interactions stopped happeningVerifying the order of interactions; Verifying interactions and ignoring stubbed methods; Verifying the method invocation within time; Chapter 7: Verifying Behavior with Object Matchers; Introduction; Using Hamcrest matchers for assertions; Creating custom Hamcrest matchers; Using Hamcrest matchers for stubbing and verification; Using AssertJ for assertions; Creating custom AssertJ assertions; Capturing and asserting the argument; Chapter 8: Refactoring with Mockito; Introduction; Removing the problems with instance creation Refactoring classes that do too much |
Record Nr. | UNINA-9910458691303321 |
Grzejszczak Marcin
![]() |
||
Birmingham, [England] : , : Packt Publishing, , 2014 | ||
![]() | ||
Lo trovi qui: Univ. Federico II | ||
|
Mockito cookbook : over 65 recipes to get you up and running with unit testing using Mockito / / Marcin Grzejszczak ; cover image by Poonam Nayak |
Autore | Grzejszczak Marcin |
Edizione | [1st edition] |
Pubbl/distr/stampa | Birmingham, [England] : , : Packt Publishing, , 2014 |
Descrizione fisica | 1 online resource (284 p.) |
Disciplina | 621.3981 |
Soggetto topico |
Computer interfaces
User interfaces (Computer systems) |
ISBN | 1-78398-275-6 |
Formato | Materiale a stampa ![]() |
Livello bibliografico | Monografia |
Lingua di pubblicazione | eng |
Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Mockito; Introduction; Adding Mockito to a project's classpath; Getting started with Mockito for JUnit; Getting started with Mockito for TestNG; Mockito best practices - test behavior not implementation; Adding Mockito hints to exception messages (JUnit) (Experimental); Adding additional Mockito warnings to your tests (JUnit) (Experimental); Chapter 2: Creating Mocks; Introduction; Creating mocks in code; Creating mocks with annotations
Creating mocks with a different default answerCreating mocks with different default answers with annotations; Creating mocks with custom configuration; Creating mocks of final classes with PowerMock; Creating mocks of enums with PowerMock; Chapter 3: Creating Spies and Partial Mocks; Introduction; Creating spies in code; Creating spies with custom configuration; Creating spies using annotations; Creating partial mocks; Creating partial mocks of final classes with delegatesTo(); Creating spies of final classes with PowerMock; Chapter 4: Stubbing Behavior of Mocks; Introduction Using argument matchers for stubbingStubbing methods that return values; Stubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing methods so that they call real methods; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing void methods so that they call real methods; Stubbing final methods with PowerMock; Stubbing static methods with PowerMock; Stubbing object instantiation using PowerMock; Chapter 5: Stubbing Behavior of Spies; Introduction Stubbing methods that return valuesStubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing final methods with PowerMock; Chapter 6: Verifying Test Doubles; Introduction; Verifying the method invocation count with times(); Verifying the method invocation count with atLeast(); Verifying the method invocation count with atMost(); Verifying that interactions never happened Verifying that interactions stopped happeningVerifying the order of interactions; Verifying interactions and ignoring stubbed methods; Verifying the method invocation within time; Chapter 7: Verifying Behavior with Object Matchers; Introduction; Using Hamcrest matchers for assertions; Creating custom Hamcrest matchers; Using Hamcrest matchers for stubbing and verification; Using AssertJ for assertions; Creating custom AssertJ assertions; Capturing and asserting the argument; Chapter 8: Refactoring with Mockito; Introduction; Removing the problems with instance creation Refactoring classes that do too much |
Record Nr. | UNINA-9910791022903321 |
Grzejszczak Marcin
![]() |
||
Birmingham, [England] : , : Packt Publishing, , 2014 | ||
![]() | ||
Lo trovi qui: Univ. Federico II | ||
|
Mockito cookbook : over 65 recipes to get you up and running with unit testing using Mockito / / Marcin Grzejszczak ; cover image by Poonam Nayak |
Autore | Grzejszczak Marcin |
Edizione | [1st edition] |
Pubbl/distr/stampa | Birmingham, [England] : , : Packt Publishing, , 2014 |
Descrizione fisica | 1 online resource (284 p.) |
Disciplina | 621.3981 |
Soggetto topico |
Computer interfaces
User interfaces (Computer systems) |
ISBN | 1-78398-275-6 |
Formato | Materiale a stampa ![]() |
Livello bibliografico | Monografia |
Lingua di pubblicazione | eng |
Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Mockito; Introduction; Adding Mockito to a project's classpath; Getting started with Mockito for JUnit; Getting started with Mockito for TestNG; Mockito best practices - test behavior not implementation; Adding Mockito hints to exception messages (JUnit) (Experimental); Adding additional Mockito warnings to your tests (JUnit) (Experimental); Chapter 2: Creating Mocks; Introduction; Creating mocks in code; Creating mocks with annotations
Creating mocks with a different default answerCreating mocks with different default answers with annotations; Creating mocks with custom configuration; Creating mocks of final classes with PowerMock; Creating mocks of enums with PowerMock; Chapter 3: Creating Spies and Partial Mocks; Introduction; Creating spies in code; Creating spies with custom configuration; Creating spies using annotations; Creating partial mocks; Creating partial mocks of final classes with delegatesTo(); Creating spies of final classes with PowerMock; Chapter 4: Stubbing Behavior of Mocks; Introduction Using argument matchers for stubbingStubbing methods that return values; Stubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing methods so that they call real methods; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing void methods so that they call real methods; Stubbing final methods with PowerMock; Stubbing static methods with PowerMock; Stubbing object instantiation using PowerMock; Chapter 5: Stubbing Behavior of Spies; Introduction Stubbing methods that return valuesStubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing final methods with PowerMock; Chapter 6: Verifying Test Doubles; Introduction; Verifying the method invocation count with times(); Verifying the method invocation count with atLeast(); Verifying the method invocation count with atMost(); Verifying that interactions never happened Verifying that interactions stopped happeningVerifying the order of interactions; Verifying interactions and ignoring stubbed methods; Verifying the method invocation within time; Chapter 7: Verifying Behavior with Object Matchers; Introduction; Using Hamcrest matchers for assertions; Creating custom Hamcrest matchers; Using Hamcrest matchers for stubbing and verification; Using AssertJ for assertions; Creating custom AssertJ assertions; Capturing and asserting the argument; Chapter 8: Refactoring with Mockito; Introduction; Removing the problems with instance creation Refactoring classes that do too much |
Record Nr. | UNINA-9910820997203321 |
Grzejszczak Marcin
![]() |
||
Birmingham, [England] : , : Packt Publishing, , 2014 | ||
![]() | ||
Lo trovi qui: Univ. Federico II | ||
|
PhantomJS cookbook : over 70 recipes to help boost the productivity of your applications using real-world testing with PhantomJS / / Rob Friesel ; cover image by Poonam Nayak |
Autore | Friesel Rob |
Pubbl/distr/stampa | Birmingham, England : , : Packt Publishing, , 2014 |
Descrizione fisica | 1 online resource (304 p.) |
Disciplina | 006.7 |
Collana | Quick answers to common problems |
Soggetto topico |
Web site development
Web sites - Design Internet programming |
Soggetto genere / forma | Electronic books. |
ISBN | 1-78398-193-8 |
Formato | Materiale a stampa ![]() |
Livello bibliografico | Monografia |
Lingua di pubblicazione | eng |
Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with PhantomJS; Introduction; Installing PhantomJS; Launching the PhantomJS REPL; Running a PhantomJS script; Running a PhantomJS script with arguments; Running PhantomJS with cookies; Running PhantomJS with a disk cache; Running PhantomJS with a JSON configuration file; Debugging a PhantomJS script; Chapter 2: PhantomJS Core Modules; Introduction; Inspecting the version at runtime; Managing cookies with the phantom object
Specifying a path for external scriptsSetting up a global PhantomJS error handler; Controlling the exit status of a PhantomJS script; Inspecting command-line arguments; Inspecting system environment variables; Saving a file from a PhantomJS script; Reading a file from PhantomJS; Creating a custom module for PhantomJS; Loading custom modules in PhantomJS; Chapter 3: Working with webpage Objects; Introduction; Creating a web page instance in PhantomJS with the webpage module; Opening a URL within PhantomJS; Generating a POST from PhantomJS; Inspecting page content from a PhantomJS script Including external JavaScript on the pageRecording debugger messages; Simulating mouse clicks in PhantomJS; Simulating keyboard input in PhantomJS; Simulating scrolling in PhantomJS; Simulating mouse hovers in PhantomJS; Blocking CSS from downloading; Causing images to fail randomly; Submitting Ajax requests from PhantomJS; Working with WebSockets in PhantomJS; Chapter 4: Unit Testing with PhantomJS; Introduction; Running Jasmine unit tests with PhantomJS; Using TerminalReporter for unit testing in PhantomJS; Creating a Jasmine test runner for PhantomJS and every other browser Running Jasmine unit tests with GruntWatching your tests during development with Grunt; Running Jasmine unit tests with the Karma test runner; Generating code coverage reports with Istanbul and the Karma test runner; Running Jasmine unit tests with Karma and PhantomJS from WebStorm; Running QUnit tests with PhantomJS; Running Mocha unit tests with PhantomJS; Chapter 5: Functional and End-to-end Testing with PhantomJS; Introduction; Running Selenium tests with PhantomJS and GhostDriver; Using WebdriverJS as a Selenium client for PhantomJS; Adding Poltergeist to a Capybara suite Taking screenshots during tests with PoltergeistSimulating precise mouse clicks with Poltergeist; Installing CasperJS; Interacting with web pages using CasperJS; End-to-end testing with CasperJS; Exporting test results from CasperJS in XUnit format; Detecting visual regressions using PhantomCSS; Chapter 6: Network Monitoring and Performance Analysis; Introduction; Generating HAR files from PhantomJS; Listing CSS properties; Generating an appcache manifest; Executing a simple performance analysis; Executing a detailed performance analysis Executing a YSlow performance analysis with a custom ruleset |
Record Nr. | UNINA-9910458545103321 |
Friesel Rob
![]() |
||
Birmingham, England : , : Packt Publishing, , 2014 | ||
![]() | ||
Lo trovi qui: Univ. Federico II | ||
|
PhantomJS cookbook : over 70 recipes to help boost the productivity of your applications using real-world testing with PhantomJS / / Rob Friesel ; cover image by Poonam Nayak |
Autore | Friesel Rob |
Pubbl/distr/stampa | Birmingham, England : , : Packt Publishing, , 2014 |
Descrizione fisica | 1 online resource (304 p.) |
Disciplina | 006.7 |
Collana | Quick answers to common problems |
Soggetto topico |
Web site development
Web sites - Design Internet programming |
ISBN | 1-78398-193-8 |
Formato | Materiale a stampa ![]() |
Livello bibliografico | Monografia |
Lingua di pubblicazione | eng |
Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with PhantomJS; Introduction; Installing PhantomJS; Launching the PhantomJS REPL; Running a PhantomJS script; Running a PhantomJS script with arguments; Running PhantomJS with cookies; Running PhantomJS with a disk cache; Running PhantomJS with a JSON configuration file; Debugging a PhantomJS script; Chapter 2: PhantomJS Core Modules; Introduction; Inspecting the version at runtime; Managing cookies with the phantom object
Specifying a path for external scriptsSetting up a global PhantomJS error handler; Controlling the exit status of a PhantomJS script; Inspecting command-line arguments; Inspecting system environment variables; Saving a file from a PhantomJS script; Reading a file from PhantomJS; Creating a custom module for PhantomJS; Loading custom modules in PhantomJS; Chapter 3: Working with webpage Objects; Introduction; Creating a web page instance in PhantomJS with the webpage module; Opening a URL within PhantomJS; Generating a POST from PhantomJS; Inspecting page content from a PhantomJS script Including external JavaScript on the pageRecording debugger messages; Simulating mouse clicks in PhantomJS; Simulating keyboard input in PhantomJS; Simulating scrolling in PhantomJS; Simulating mouse hovers in PhantomJS; Blocking CSS from downloading; Causing images to fail randomly; Submitting Ajax requests from PhantomJS; Working with WebSockets in PhantomJS; Chapter 4: Unit Testing with PhantomJS; Introduction; Running Jasmine unit tests with PhantomJS; Using TerminalReporter for unit testing in PhantomJS; Creating a Jasmine test runner for PhantomJS and every other browser Running Jasmine unit tests with GruntWatching your tests during development with Grunt; Running Jasmine unit tests with the Karma test runner; Generating code coverage reports with Istanbul and the Karma test runner; Running Jasmine unit tests with Karma and PhantomJS from WebStorm; Running QUnit tests with PhantomJS; Running Mocha unit tests with PhantomJS; Chapter 5: Functional and End-to-end Testing with PhantomJS; Introduction; Running Selenium tests with PhantomJS and GhostDriver; Using WebdriverJS as a Selenium client for PhantomJS; Adding Poltergeist to a Capybara suite Taking screenshots during tests with PoltergeistSimulating precise mouse clicks with Poltergeist; Installing CasperJS; Interacting with web pages using CasperJS; End-to-end testing with CasperJS; Exporting test results from CasperJS in XUnit format; Detecting visual regressions using PhantomCSS; Chapter 6: Network Monitoring and Performance Analysis; Introduction; Generating HAR files from PhantomJS; Listing CSS properties; Generating an appcache manifest; Executing a simple performance analysis; Executing a detailed performance analysis Executing a YSlow performance analysis with a custom ruleset |
Record Nr. | UNINA-9910791027603321 |
Friesel Rob
![]() |
||
Birmingham, England : , : Packt Publishing, , 2014 | ||
![]() | ||
Lo trovi qui: Univ. Federico II | ||
|
PhantomJS cookbook : over 70 recipes to help boost the productivity of your applications using real-world testing with PhantomJS / / Rob Friesel ; cover image by Poonam Nayak |
Autore | Friesel Rob |
Pubbl/distr/stampa | Birmingham, England : , : Packt Publishing, , 2014 |
Descrizione fisica | 1 online resource (304 p.) |
Disciplina | 006.7 |
Collana | Quick answers to common problems |
Soggetto topico |
Web site development
Web sites - Design Internet programming |
ISBN | 1-78398-193-8 |
Formato | Materiale a stampa ![]() |
Livello bibliografico | Monografia |
Lingua di pubblicazione | eng |
Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with PhantomJS; Introduction; Installing PhantomJS; Launching the PhantomJS REPL; Running a PhantomJS script; Running a PhantomJS script with arguments; Running PhantomJS with cookies; Running PhantomJS with a disk cache; Running PhantomJS with a JSON configuration file; Debugging a PhantomJS script; Chapter 2: PhantomJS Core Modules; Introduction; Inspecting the version at runtime; Managing cookies with the phantom object
Specifying a path for external scriptsSetting up a global PhantomJS error handler; Controlling the exit status of a PhantomJS script; Inspecting command-line arguments; Inspecting system environment variables; Saving a file from a PhantomJS script; Reading a file from PhantomJS; Creating a custom module for PhantomJS; Loading custom modules in PhantomJS; Chapter 3: Working with webpage Objects; Introduction; Creating a web page instance in PhantomJS with the webpage module; Opening a URL within PhantomJS; Generating a POST from PhantomJS; Inspecting page content from a PhantomJS script Including external JavaScript on the pageRecording debugger messages; Simulating mouse clicks in PhantomJS; Simulating keyboard input in PhantomJS; Simulating scrolling in PhantomJS; Simulating mouse hovers in PhantomJS; Blocking CSS from downloading; Causing images to fail randomly; Submitting Ajax requests from PhantomJS; Working with WebSockets in PhantomJS; Chapter 4: Unit Testing with PhantomJS; Introduction; Running Jasmine unit tests with PhantomJS; Using TerminalReporter for unit testing in PhantomJS; Creating a Jasmine test runner for PhantomJS and every other browser Running Jasmine unit tests with GruntWatching your tests during development with Grunt; Running Jasmine unit tests with the Karma test runner; Generating code coverage reports with Istanbul and the Karma test runner; Running Jasmine unit tests with Karma and PhantomJS from WebStorm; Running QUnit tests with PhantomJS; Running Mocha unit tests with PhantomJS; Chapter 5: Functional and End-to-end Testing with PhantomJS; Introduction; Running Selenium tests with PhantomJS and GhostDriver; Using WebdriverJS as a Selenium client for PhantomJS; Adding Poltergeist to a Capybara suite Taking screenshots during tests with PoltergeistSimulating precise mouse clicks with Poltergeist; Installing CasperJS; Interacting with web pages using CasperJS; End-to-end testing with CasperJS; Exporting test results from CasperJS in XUnit format; Detecting visual regressions using PhantomCSS; Chapter 6: Network Monitoring and Performance Analysis; Introduction; Generating HAR files from PhantomJS; Listing CSS properties; Generating an appcache manifest; Executing a simple performance analysis; Executing a detailed performance analysis Executing a YSlow performance analysis with a custom ruleset |
Record Nr. | UNINA-9910822217703321 |
Friesel Rob
![]() |
||
Birmingham, England : , : Packt Publishing, , 2014 | ||
![]() | ||
Lo trovi qui: Univ. Federico II | ||
|