Commit Graph
2447 Commits
Author SHA1 Message Date
Álvaro Fernández González deaf809ec7 Adding new article to readme after article going live (#522)
* Add new module for mocks comparison.

* Add sources for testing.

* Changes on testCase.

* Enter some tests for mockito.

* More tests for Mockito.

* Even more tests.

* Add the rest of the mocking libraries.

* Javadoc on test.

* Test bare bones for EasyMock.

* Fist kind of test and setup.

* Add tests using EasyMock with a change on LoginService.

* Create LoginControllerTest.java

* Test setup

* [JMockit] No method called test.

* [JMockit] Two methods called test.

* [JMockit] One method called test.

* [JMockit] Exception mock test

* [JMockit] Mocked object to pass around test.

* [JMockit] Custom matcher test.

* [JMockit] Partial mocking test.

* [JMockit] Fix with IDE.

* Not stubs. Mocks. MOCKS!!!

* Remove unnecesary import.

* Use correct encoding. Was having problems with buildings.

* Remove failing module.

* Create new module mocks and move mock-comparisons there.

* Add jmockit module.

* Add model class.

* Add collaborator class.

* Add performer class.

* Add performer test.

* Fix

* Add interface for tests.

* Test for any.

* Test for with.

* Test for null.

* Test for times.

* Test for arg that.

* Test for result and returns.

* Test for delegate.

* Add verifications to any tests.

* Add verifications to with test.

* Add verification examples to methods using null.

* Add verifications to methods using times.

* Formatting.

* Compress tests and fix one test.

* Adding new article to readme.
2016-07-22 11:16:50 +03:00
Alex Theedom 4bc3153fc0 Config changes to log4j and a minor code change 2016-07-20 23:36:12 +01:00
Alex Theedom 532d4ad8b4 Merge pull request #521 from egimaben/master
fixed failing test
2016-07-20 23:20:20 +01:00
egimaben b5ce0e9ba0 fixed failing test 2016-07-21 00:20:44 +03:00
Alex Theedom 363c543e7a Merge pull request #519 from egimaben/master
fixed merge conflicts
2016-07-20 18:23:12 +01:00
maibin 042878628f Expression-Based Access Control (#517)
* Expression-Based Access Control

PermitAll, hasRole, hasAnyRole etc.
I modified classes regards to Security

* Added test cases for Spring Security Expressions
2016-07-20 19:17:38 +03:00
Grzegorz Piwowarek 34414b2a43 Refactor JMockit examples 2016-07-20 19:17:08 +03:00
Álvaro Fernández González b9c412689d Fix on the test and compression to match article (#520)
* Add new module for mocks comparison.

* Add sources for testing.

* Changes on testCase.

* Enter some tests for mockito.

* More tests for Mockito.

* Even more tests.

* Add the rest of the mocking libraries.

* Javadoc on test.

* Test bare bones for EasyMock.

* Fist kind of test and setup.

* Add tests using EasyMock with a change on LoginService.

* Create LoginControllerTest.java

* Test setup

* [JMockit] No method called test.

* [JMockit] Two methods called test.

* [JMockit] One method called test.

* [JMockit] Exception mock test

* [JMockit] Mocked object to pass around test.

* [JMockit] Custom matcher test.

* [JMockit] Partial mocking test.

* [JMockit] Fix with IDE.

* Not stubs. Mocks. MOCKS!!!

* Remove unnecesary import.

* Use correct encoding. Was having problems with buildings.

* Remove failing module.

* Create new module mocks and move mock-comparisons there.

* Add jmockit module.

* Add model class.

* Add collaborator class.

* Add performer class.

* Add performer test.

* Fix

* Add interface for tests.

* Test for any.

* Test for with.

* Test for null.

* Test for times.

* Test for arg that.

* Test for result and returns.

* Test for delegate.

* Add verifications to any tests.

* Add verifications to with test.

* Add verification examples to methods using null.

* Add verifications to methods using times.

* Formatting.

* Compress tests and fix one test.
2016-07-20 15:31:51 +03:00
egimaben e580d248df fixed merge conflicts 2016-07-20 10:45:38 +03:00
egimaben ff2cffa1f0 merged my master with upstream/eugenp master 2016-07-20 10:29:19 +03:00
Álvaro Fernández González 11241eabc0 Changes to code to add verifications (#518)
* Add new module for mocks comparison.

* Add sources for testing.

* Changes on testCase.

* Enter some tests for mockito.

* More tests for Mockito.

* Even more tests.

* Add the rest of the mocking libraries.

* Javadoc on test.

* Test bare bones for EasyMock.

* Fist kind of test and setup.

* Add tests using EasyMock with a change on LoginService.

* Create LoginControllerTest.java

* Test setup

* [JMockit] No method called test.

* [JMockit] Two methods called test.

* [JMockit] One method called test.

* [JMockit] Exception mock test

* [JMockit] Mocked object to pass around test.

* [JMockit] Custom matcher test.

* [JMockit] Partial mocking test.

* [JMockit] Fix with IDE.

* Not stubs. Mocks. MOCKS!!!

* Remove unnecesary import.

* Use correct encoding. Was having problems with buildings.

* Remove failing module.

* Create new module mocks and move mock-comparisons there.

* Add jmockit module.

* Add model class.

* Add collaborator class.

* Add performer class.

* Add performer test.

* Fix

* Add interface for tests.

* Test for any.

* Test for with.

* Test for null.

* Test for times.

* Test for arg that.

* Test for result and returns.

* Test for delegate.

* Add verifications to any tests.

* Add verifications to with test.

* Add verification examples to methods using null.

* Add verifications to methods using times.

* Formatting.
2016-07-20 10:21:45 +03:00
Grzegorz Piwowarek 2f8dc9d081 Add additional expectations 2016-07-20 07:59:33 +03:00
Raquel Garrido f4348cac35 Test content (#515)
* Test Model Content

* Test get

* test get
2016-07-20 07:39:09 +03:00
tomjoebob 53062a85df Merge pull request #514 from jgarciaheredero/master
BAEL-83: Circular dependencies in Spring
2016-07-19 14:23:48 -06:00
Eugen ce8cc34334 Merge pull request #503 from eugenp/cleanup
Remove eclipse-specific files
2016-07-19 22:19:56 +02:00
egimaben ec8bd5368a fixed unit tests with wiremock 2016-07-19 21:59:52 +03:00
Grzegorz Piwowarek a09e6454f3 Remove Eclipse-specific files 2016-07-19 18:18:50 +03:00
Sergey Petunin cb8f58a9e7 Added examples for the @RestClientTest article, fixed mail port (#513) 2016-07-19 16:01:18 +03:00
Juan García Heredero 4e7a47de12 Create CircularDependencyTest 2016-07-19 12:42:27 +02:00
Juan García Heredero 170a45a314 Create TestConfig 2016-07-19 12:42:04 +02:00
Juan García Heredero a42a9bbc88 Create CircularDependencyB 2016-07-19 12:41:15 +02:00
Juan García Heredero 259f3ca7ab Create CircularDependencyA 2016-07-19 12:40:49 +02:00
Alex Theedom 3efa23b6b5 Merge remote-tracking branch 'origin/master' 2016-07-18 22:29:43 +01:00
Alex Theedom e4a586b53d Add wire mock in order to stub endpoints to test suite 2016-07-18 22:29:12 +01:00
Eugen 6b99ced529 Merge pull request #469 from dogeared/master
Add JJWT tutorial code to the tutorials repo
2016-07-18 16:54:58 +02:00
Slavisa Baeldung d577830362 BAEL-17 - reorganizing objectmapper tests 2016-07-18 13:16:52 +02:00
Slavisa Baeldung a727caec3a Merge branch 'master' into pr/498-ask-das-objectmapper 2016-07-18 12:25:49 +02:00
Slavisa Baeldung ffbd7f0d0d Merge remote-tracking branch 'origin/pr/498' into pr/498-ask-das-objectmapper
Conflicts:
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JavaToJsonExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonAdvancedCustomSerializeExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonAdvancedJsonNodeExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonArrayExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonDateExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonMapExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonParserExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonToJavaExample.java
	jackson/src/test/java/com/baeldung/jackson/objectmapper/JsonToJsonNode.java
2016-07-18 12:25:34 +02:00
Álvaro Fernández González c738c9ed77 Code for deepening on expectations (#511)
* Add new module for mocks comparison.

* Add sources for testing.

* Changes on testCase.

* Enter some tests for mockito.

* More tests for Mockito.

* Even more tests.

* Add the rest of the mocking libraries.

* Javadoc on test.

* Test bare bones for EasyMock.

* Fist kind of test and setup.

* Add tests using EasyMock with a change on LoginService.

* Create LoginControllerTest.java

* Test setup

* [JMockit] No method called test.

* [JMockit] Two methods called test.

* [JMockit] One method called test.

* [JMockit] Exception mock test

* [JMockit] Mocked object to pass around test.

* [JMockit] Custom matcher test.

* [JMockit] Partial mocking test.

* [JMockit] Fix with IDE.

* Not stubs. Mocks. MOCKS!!!

* Remove unnecesary import.

* Use correct encoding. Was having problems with buildings.

* Remove failing module.

* Create new module mocks and move mock-comparisons there.

* Add jmockit module.

* Add model class.

* Add collaborator class.

* Add performer class.

* Add performer test.

* Fix

* Add interface for tests.

* Test for any.

* Test for with.

* Test for null.

* Test for times.

* Test for arg that.

* Test for result and returns.

* Test for delegate.
2016-07-18 09:39:15 +03:00
Grzegorz Piwowarek e883cf63a1 Refactor mvc-velocity examples 2016-07-17 22:21:16 +03:00