Commit Graph

2850 Commits

Author SHA1 Message Date
Á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
Thai Nguyen d4a45164f6 Merge branch 'master' into cxf-spring 2016-07-19 14:26:28 +07:00
Thai Nguyen 9c7debefa4 Changes configuration from XML to Java for the cxf-spring module 2016-07-19 14:25:36 +07: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
Raquel Garrido 1f5f1c6a48 Test added for mvc - velocity (#510)
* dom4j

* added more parsers

* StaxParser

* Jaxb binding

* Jaxb binding

* Finish article

* apply some changes

* Organize imports

* remove dependency

* Tutorial spring-mvc with velocity templates

* velocity with spring mvc

* tests
2016-07-17 21:41:41 +03:00
Alex Theedom 15abd8ef52 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	apache-cxf/pom.xml
2016-07-17 12:10:21 +01:00
Alex Theedom a03168a187 Merge pull request #509 from egimaben/master
added maven project for rest assured tutorial
2016-07-17 11:53:50 +01:00
egimaben 86a37c79c8 added maven project for rest assured tutorial 2016-07-17 13:15:36 +03:00
Ashanka Das eaa32bdb41 Refs #BAEL-17 : Test objectMapper. 2016-07-17 01:52:45 +02:00
Ashanka Das f14f2af421 Refs #BAEL-17 code for objectmapper. Added JUnit Test cases. 2016-07-17 01:19:44 +02:00
Alex Theedom ca7181c6df Merge pull request #506 from eugenp/grzegorz-list
Add list assertions example
2016-07-16 11:57:52 +01:00
Grzegorz Piwowarek 57ca431415 Add list assertions example 2016-07-16 10:51:50 +03:00
tomjoebob 5d411fb2cf Merge pull request #505 from chernykhalexander/master
Added Spring Boot Startets module
2016-07-15 16:48:25 -06:00
Chernykh Alexander 5b28a3c19a fixed whitespaces 2016-07-16 01:47:48 +03:00
chernykhalexander e3c28f6dcd merge into spring-boot module 2016-07-16 01:38:48 +03:00
Chernykh Alexander c960c2f2a8 cleaned up whitespaces 2016-07-16 01:05:19 +03:00
Chernykh Alexander 3b8ec66168 removed module from pom.xml 2016-07-16 01:02:56 +03:00
chernykhalexander 0944745a02 comment out spring-boot-starters module in parent pom.xml 2016-07-16 00:51:09 +03:00
chernykhalexander 6fa4a43d39 added spring boot starters module 2016-07-16 00:48:09 +03:00
Zeger Hendrikse 1a812c42ba Merge branch 'nguyennamthai-cxf_spring' 2016-07-15 13:45:10 +02:00
Zeger Hendrikse ca889aec41 Replaced tabs by spaces 2016-07-15 13:08:52 +02:00
Zeger Hendrikse a7b1b46e60 Replaced tabs by spaces 2016-07-15 13:02:13 +02:00
Zeger Hendrikse 97ba59c59f Replaced tabs by spaces 2016-07-15 12:54:28 +02:00
Zeger Hendrikse 835119464b Merge branch 'cxf_spring' of https://github.com/nguyennamthai/tutorials into nguyennamthai-cxf_spring 2016-07-15 11:11:54 +02:00
Grzegorz Piwowarek 2113974e1c Refactor spring-controller 2016-07-14 23:05:25 +03:00
prashant1067 0f6218ec91 adding spring controller changes (#493)
* adding spring controller changes

* changing package name to baledung

* removing test package

* adding changes in pom for spring junit testing

* adding test classes for controller

* adding equals and hashcode for student for test cases

* adding changes for running test cases
2016-07-14 22:45:56 +03:00
slavisa-baeldung 5b3afb4c0d Merge pull request #502 from forketyfork/master
Removed spring-4.3 from the main module
2016-07-14 16:49:15 +02:00
Slavisa Baeldung 1d896e5e96 NOJIRA - removing missing module form main pom.xml 2016-07-14 16:45:24 +02:00
Сергей Петунин 506740b328 Removed spring-4.3 from the main module 2016-07-14 19:34:31 +05:00