Statements (264)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Java_Script
gptkb:Mockito |
gptkbp:allows |
behavior verification
stubbing methods partial mocks creating mock objects verifying interactions with mocks custom argument matchers mocking final classes mocking private methods mocking static methods performing requests without starting a server spy objects argument matching verification modes verification of responses |
gptkbp:can |
status codes
JSON responses XML responses HTML responses mock HTTP requests response bodies plain text responses |
gptkbp:can_be_configured_for |
custom filters
custom interceptors custom argument resolvers Mock Mvc Configurer Spring's application context |
gptkbp:can_be_extended_by |
custom implementations
|
gptkbp:can_be_used_with |
gptkb:Mock_Mvc_Builders
Mvc Result Result Actions Mock Http Servlet Request Builder Mock Http Servlet Response |
gptkbp:can_handle |
multipart requests
|
gptkbp:can_perform |
DELETE requests
GET requests POST requests PUT requests |
gptkbp:created_by |
gptkb:Mock_Mvc_Builders
Henrik Kniberg |
gptkbp:dependency |
gptkb:Hamcrest
gptkb:org.mockito:mockito-core gptkb:org.mockito:mockito-inline gptkb:org.mockito:mockito-junit-jupiter gptkb:org.mockito:mockito-testng gptkb:JUnit |
gptkbp:developed_by |
gptkb:Martin_Fowler
gptkb:Martin_A._Odersky Mockito team |
gptkbp:emulation |
HTTP responses
|
gptkbp:first_released |
gptkb:2007
gptkb:2008 |
gptkbp:has |
gptkb:test_subjects
active community extensive documentation |
gptkbp:has_documentation |
official website
|
gptkbp:has_feature |
argument matchers
custom argument matchers mocking constructors mocking final classes mocking interfaces mocking private methods mocking static methods spy objects verification modes injection of mocks lenient stubbing verification after invocation |
gptkbp:hosted_by |
gptkb:Git_Hub
|
https://www.w3.org/2000/01/rdf-schema#label |
Mockito
|
gptkbp:integrates_with |
gptkb:Spring_Framework
|
gptkbp:investigates |
redirects
flash attributes model attributes view names |
gptkbp:is_available_in |
Spring 3.2 and later
|
gptkbp:is_available_on |
gptkb:Maven_Central
gptkb:Gradle_Plugin_Portal gptkb:JCenter |
gptkbp:is_capable_of_testing |
redirects
HTTP methods (GET, POST, etc.) application context configurations |
gptkbp:is_compatible_with |
gptkb:Maven
gptkb:Kotlin gptkb:Ant-Man gptkb:Spring_Web_Flux gptkb:Spring's_Dispatcher_Servlet gptkb:Android gptkb:Spring_Framework gptkb:Test_NG gptkb:JUnit gptkb:Gradle Java 8 and above |
gptkbp:is_considered |
HTTP status codes
|
gptkbp:is_designed_for |
unit testing controllers
|
gptkbp:is_documented_in |
gptkb:Java_Doc
tutorials user guides examples Spring documentation |
gptkbp:is_integrated_with |
gptkb:Spring_Framework
|
gptkbp:is_often_used_in |
gptkb:Mockito
gptkb:JUnit integration tests |
gptkbp:is_often_used_to_ensure |
application reliability
|
gptkbp:is_often_used_to_validate |
input validation
|
gptkbp:is_often_used_to_verify |
controller behavior
|
gptkbp:is_open_source |
gptkb:true
|
gptkbp:is_part_of |
gptkb:test_subjects
gptkb:Spring_Test_module gptkb:Java_ecosystem open-source projects test-driven development testing frameworks unit testing frameworks behavior-driven development mocking frameworks Spring's testing support org.springframework.test.web.servlet package Spring Web module testing ecosystem mocking libraries |
gptkbp:is_popular_in |
gptkb:Java_community
test-driven development behavior-driven development |
gptkbp:is_similar_to |
gptkb:Easy_Mock
gptkb:Power_Mock gptkb:JMock |
gptkbp:is_supported_by |
gptkb:Documentation
gptkb:Spring_Web_Flux gptkb:Spring_Framework gptkb:community tutorials community contributions online forums Git Hub issues |
gptkbp:is_tested_for |
gptkb:Maven
gptkb:cookies gptkb:Gradle REST APIs exception handling request parameters security configurations filters interceptors controllers content negotiation request headers session attributes HTTP sessions API versioning. CORS configurations HTTP status messages Spring Boot tests custom response converters error pages response bodies view resolvers Spring MVC tests Web Flux tests |
gptkbp:is_used_by |
gptkb:developers
QA engineers test automation engineers |
gptkbp:is_used_for |
API testing
performance testing web application testing enhancing test readability improving test reliability isolating unit tests reducing dependencies in tests API documentation testing behavior-driven development (BDD) testing service layer testing controller layer testing |
gptkbp:is_used_in |
unit tests
integration tests CI/ CD pipelines |
gptkbp:language |
gptkb:Java
|
gptkbp:latest_version |
4.0.0
3.12.4 |
gptkbp:license |
MIT License
|
gptkbp:part_of |
gptkb:Spring_Framework
|
gptkbp:provides |
gptkb:test_subjects
mock objects spy functionality stubbing capabilities verification capabilities argument matchers stubbing of methods verification of behavior mock HTTP requests mocking capabilities for HTTP sessions result matchers for assertions support for testing Spring MVC applications Test NG support JUnit 5 support JUnit 4 support |
gptkbp:release_date |
gptkb:2008
|
gptkbp:repository |
gptkb:Git_Hub
https://github.com/mockito/mockito |
gptkbp:supports |
gptkb:Test_NG
gptkb:JUnit lambda expressions Java 8+ stubbing methods argument matchers JSON and XML request bodies custom argument matchers custom request headers fluent API for building requests mocking abstract classes mocking constructors mocking final classes mocking interfaces mocking private methods mocking static methods mocking with annotations mocking with lambda expressions verification of interactions mocking generic types mocking with custom implementations mocking with spies spying on real objects MVC testing |
gptkbp:used_for |
mocking in unit tests
mocking objects in unit tests |
gptkbp:used_in |
gptkb:Microservices
gptkb:Spring_applications gptkb:Spring_Framework API testing Android applications continuous integration performance testing test automation test-driven development testing Java applications integration testing regression testing software testing test case design Java EE applications load testing unit testing frameworks agile development microservices testing behavior-driven development functional testing mocking frameworks acceptance testing mocking best practices unit testing best practices |
gptkbp:website |
mockito.org
|
gptkbp:written_in |
gptkb:Java
|
gptkbp:bfsParent |
gptkb:test_subjects
gptkb:API gptkb:Java_2_Platform gptkb:Ultraman gptkb:Java_Server_Faces gptkb:Micro_Profile gptkb:Spring_Framework gptkb:JUnit |
gptkbp:bfsLayer |
4
|