63 Commits
Author SHA1 Message Date
Tomasz Lelek 0a76081ac3 Bael 1421 (#3312)
* BAEL-1421 live test of kafka streams

* BAEL-1421 Removed not-needed dependency

* BAEL-1421 rearannge

* BAEL-1421 rearannge

* fix pom

* move to libraries-data

* move to libraries-data
2017-12-28 11:21:11 +01:00
Tomasz Lelek 2ef351434e Bael 1421 (#3222)
* BAEL-1421 live test of kafka streams

* BAEL-1421 Removed not-needed dependency

* BAEL-1421 rearannge

* BAEL-1421 rearannge

* fix pom
2017-12-24 06:33:37 +01:00
Tomasz Lelek c521aa66af BAEL-1155 crdt (#2659)
* BAEL-1155 crdt

* BAEL-1155 fix pom
2017-10-06 10:36:50 +02:00
Tomasz Lelek fb7d3fe8f4 Bael 1010 hll (#2274)
* BAEL-1010 HLL article code

* BAEL-1010 moved tolerated difference to a variable

* Merge branch 'master' of https://github.com/eugenp/tutorials into BAEL-1010_hll

# Conflicts:
#	libraries/pom.xml

* BAEL-1010 clearer code

* use isCloseTo
2017-07-17 07:10:55 +03:00
Tomasz Lelek 3718dfd0d1 Bael 1010 hll (#2256)
* BAEL-1010 HLL article code

* BAEL-1010 moved tolerated difference to a variable

* Merge branch 'master' of https://github.com/eugenp/tutorials into BAEL-1010_hll

# Conflicts:
#	libraries/pom.xml

* BAEL-1010 clearer code
2017-07-13 13:24:49 -05:00
Tomasz Lelek e6a0bbe090 BAEL-1010 HLL article code (#2188)
* BAEL-1010 HLL article code

* BAEL-1010 moved tolerated difference to a variable

* Merge branch 'master' of https://github.com/eugenp/tutorials into BAEL-1010_hll

# Conflicts:
#	libraries/pom.xml
2017-07-10 21:05:08 -05:00
Tomasz Lelek 1b9353c83e Bael 806 lazy (#2248)
* BAEL-806 lazy article code

* BAEL-806 remove comment
2017-07-10 21:02:21 +02:00
Tomasz Lelek 57279a1b5c BAEL-1005 bloom filter code (#2171) 2017-07-08 12:30:38 -05:00
Tomasz Lelek 98633dce67 Beal 1006 rate limmiter (#2224)
* BAEL-1006 rate limiter tests

* BAEL-1006 simpler example
2017-07-08 06:51:41 +02:00
Tomasz Lelek 69c330eb6c BAEL-867 coroutines tests (#2011)
* BAEL-867 coroutines tests

* BAEL-867 add two channels examples

* BAEL-867 fix example

* BAEL-867 remove channels

* BAEL-867 optimize imports

* BAEL-867 remove kotlin module
2017-06-30 11:42:22 +02:00
Tomasz Lelek 0144471d0f BAEL-980 lsh code (#2047)
* BAEL-980 lsh code

* BAEL-980 rename test
2017-06-17 20:35:33 -05:00
Tomasz Lelek 71ddfeecb7 BAEL-936 code for akka_streams article (#1939)
* BAEL-936 code for akka_streams article

* rename
2017-06-04 14:50:00 -05:00
Tomasz Lelek 49ce027993 Bael 679 reactive streams (#1978)
* BAEL-679 code for reactive streams

* BAEL-679 typo

* BAEL-679 awaitility
2017-06-02 21:42:30 +02:00
Tomasz Lelek 9184693a2b BAEL-679 code for reactive streams (#1970)
* BAEL-679 code for reactive streams

* BAEL-679 typo
2017-06-02 18:48:17 +02:00
Tomasz Lelek 0b108e387d BAEL-949 java9 optional test (#1960) 2017-05-31 20:21:01 +02:00
Tomasz Lelek ce43d80f8b BAEL-855 stm (#1855)
* BAEL-855 code for the STM article

* BAEL-855 method ordering

* BAEL-855 Better test case

* BAEL-855 formatting

* BAEL-855 rename

* BAEL-855 change to expected

* Merge branch 'master' of https://github.com/eugenp/tutorials into BAEL-855_stm

# Conflicts:
#	libraries/pom.xml
2017-05-16 16:53:47 +02:00
Tomasz Lelek ace7ccd55b Bael 882 delay queue (#1792)
* BAEL-882 Delay_queue article code

* BAEL-882 Removed println

* BAEL-882 formatting

* BAEL-882 test ordered
2017-05-13 22:48:42 -05:00
Tomasz Lelek 5cfb7b0979 BAEL-906 code for min max priority queue and evicting queue (#1827)
* BAEL-906 code for min max priority queue and evicting queue

* BAEL-906 simplify example

* BAEL-906 test method renamed
2017-05-12 14:12:22 +02:00
Tomasz Lelek 13035331e3 Bael 883 phaser (#1794)
* BAEL-883 Code for the Phaser

* BAEL-883 remove comments
2017-05-09 04:28:12 +02:00
Tomasz Lelek b9484b244b BAEL-881 copyOnWriteArrayList tests (#1750) 2017-04-30 08:21:11 +02:00
Tomasz Lelek 9a3df1fe76 Bael 856 long adder (#1748)
* BAEL-856 code for long adder and accumulator

* BAEL-856 rearange packages

* BAEL-856 Formatting

* BAEL-850 accumulator accumulates values

* BAEL-881 use Long::sum
2017-04-28 19:33:06 +02:00
Tomasz Lelek 01cad343f7 Bael 851 mapped byte buffer (#1742)
* BAEL-851 code for the MappedByteBuffer

* BAEL-851 formatting

* SetTest refactor (#1724)

* Bael 850 (#1744)

* BAEL-850 ConcurentskipLIst

* BAEL-850 formatting

* BAEL-850 Formatting

* spring 5 work

* SetTest refactor (#1724)

* BAEL-850 use lambda

* BAEL-850 no need to casting

* Build optimization (#1746)

* Build optimization

* Build optimization

* [BAEL-820] Difference between wait() and sleep() in Java (#1708)

* injecting beans

* XML-based configuration replaced with Java Config.

* [BAEL-431] Exploring TestRestTemplate.

* Revert of evaluation task "XML-based configuration replaced with Java Config."

This reverts commit 66471cf0574c85f8ff514ec4caf5ba44ebba1a74.

* Revert of evaluation task "injecting beans"

This reverts commit d2ac20185e636245bc0ae0b4ccb952965de88e28.

* [BAEL-431] fix to the tests in TestRestTemplateBasicLiveTest.

* [BAEL-431] added more meaningful user and password for auth.

* [BAEL-820] examples of wait() and sleep() methods.

* [BAEL-820] wait() and sleep() examples.

* remove utility classes (#1733)

* remove utility classes

* remove httpclient, extend http

* move code to core-java
2017-04-28 17:02:08 +02:00
Tomasz Lelek ac8700ff65 Bael 850 (#1744)
* BAEL-850 ConcurentskipLIst

* BAEL-850 formatting

* BAEL-850 Formatting

* spring 5 work

* SetTest refactor (#1724)

* BAEL-850 use lambda

* BAEL-850 no need to casting
2017-04-27 19:35:22 +02:00
Tomasz Lelek 966d2ea30f Bael 850 (#1732)
* BAEL-786 Updated custom test reports

* BAEL-850 ConcurentskipLIst

* BAEL-850 formatting

* BAEL-856 code for long adder and accumulator (#1723)

* BAEL-856 code for long adder and accumulator

* BAEL-856 rearange packages

* BAEL-856 Formatting

* BAEL-742 Create README for Stripe API article (#1731)

* Add files via upload

* Update pom.xml

* Update RunGuice.java

* Update Communication.java

* Update CommunicationMode.java

* Update DefaultCommunicator.java

* Update EmailCommunicationMode.java

* Update IMCommunicationMode.java

* Update SMSCommunicationMode.java

* Update MessageLogger.java

* Update MessageSentLoggable.java

* Update AOPModule.java

* Update BasicModule.java

* Update CommunicationModel.java

* Update Communicator.java

* Update BasicModule.java

* Update RunGuice.java

* Update MessageLogger.java

* Update Communicator.java

* Update pom.xml

* BAEL-278: Updated README.md

* BAEL-554: Add and update README.md files

* Update pom.xml

* Update pom.xml

* Update pom.xml

* BAEL-345: fixed assertion

* BAEL-109: Updated README.md

* BAEL-345: Added README.md

* Reinstating reactor-core module in root-level pom

* BAEL-393: Adding guide-intro module to root pom

* BAEL-9: Updated README.md

* BAEL-157: README.md updated

* Changed project name

* Update RunGuice.java

Removed references to message logging and output

* Update Communication.java

Removed message logging-related code

* BAEL-566: Updated README.md

* New project name

* BAEL-393: removing guice-intro directory

* BAEL-393: renamed module guice-intro to guice in root pom.xml

* BAEL-393 and BAEL-541 README.md files

* BAEL-731: Updated README.md

* BAEL-680: renamed test methods

* BAEL-714: Updated README.md

* BAEL-737: Updated README.md

* BAEL-680 and BAEL-756 README.md updates

* BAEL-666: Updated README

* BAEL-415: Custom Scope

* BAEL-415: Custom Scope - renamed classes to reflect TenantScope

* README file updates for BAEL-723, BAEL-763, and BAEL-415

* BAEL-735: README

* BAEL-567: README

* BAEL-736: README

* BAEL-766: Update README

* BAEL-555: README update

* BAEL-761: README update

* BAEL-742: Stripe API for Java README file

* Merge aspectj -> spring-aop (#1737)

* BAEL-88 Integration tests fixed. (#1739)

* BAEL-88 Testing in Spring Boot

* BAEL-88 Integration tests fixed.

* Merge assertj -> testing (#1738)

* Guide to JDO (#1736)

* Guide to JDO

* Guide to JDO

* Guide to JDO

* Guide To JDO

* BAEL-86: Corrected URL in README.md (#1740)

* Add files via upload

* Update pom.xml

* Update RunGuice.java

* Update Communication.java

* Update CommunicationMode.java

* Update DefaultCommunicator.java

* Update EmailCommunicationMode.java

* Update IMCommunicationMode.java

* Update SMSCommunicationMode.java

* Update MessageLogger.java

* Update MessageSentLoggable.java

* Update AOPModule.java

* Update BasicModule.java

* Update CommunicationModel.java

* Update Communicator.java

* Update BasicModule.java

* Update RunGuice.java

* Update MessageLogger.java

* Update Communicator.java

* Update pom.xml

* BAEL-278: Updated README.md

* BAEL-554: Add and update README.md files

* Update pom.xml

* Update pom.xml

* Update pom.xml

* BAEL-345: fixed assertion

* BAEL-109: Updated README.md

* BAEL-345: Added README.md

* Reinstating reactor-core module in root-level pom

* BAEL-393: Adding guide-intro module to root pom

* BAEL-9: Updated README.md

* BAEL-157: README.md updated

* Changed project name

* Update RunGuice.java

Removed references to message logging and output

* Update Communication.java

Removed message logging-related code

* BAEL-566: Updated README.md

* New project name

* BAEL-393: removing guice-intro directory

* BAEL-393: renamed module guice-intro to guice in root pom.xml

* BAEL-393 and BAEL-541 README.md files

* BAEL-731: Updated README.md

* BAEL-680: renamed test methods

* BAEL-714: Updated README.md

* BAEL-737: Updated README.md

* BAEL-680 and BAEL-756 README.md updates

* BAEL-666: Updated README

* BAEL-415: Custom Scope

* BAEL-415: Custom Scope - renamed classes to reflect TenantScope

* README file updates for BAEL-723, BAEL-763, and BAEL-415

* BAEL-735: README

* BAEL-567: README

* BAEL-736: README

* BAEL-766: Update README

* BAEL-555: README update

* BAEL-761: README update

* BAEL-742: Stripe API for Java README file

* BAEL-86: Correction to README file

* BAEL-850 Formatting
2017-04-27 13:26:42 +02:00
Tomasz Lelek f979a4075d BAEL-856 code for long adder and accumulator (#1723)
* BAEL-856 code for long adder and accumulator

* BAEL-856 rearange packages

* BAEL-856 Formatting
2017-04-26 12:57:16 +02:00
Tomasz Lelek 1c53e62641 Bael 845 transfer queue (#1727)
* BAEL-845 tranferqueue article

* BAEL-845 m to m example

* BAEL-845 move code to test

* BAEL-845 use tryTransfer

* BAEL-845 proper if logic

* BAEL-845 proper test

* BAEL-845 robust test

* BAEL-856 invert logic
2017-04-25 09:44:59 +02:00
Tomasz Lelek c70ee03a24 BAEL-846 code for a syncrhonous queue article (#1699)
* code for the unsafe article

* more descriptive example

* proper eng

* better test name

* free memory call

* java 8 style

* BAEL-814 Added call to freeMemory() in off-heap test

* BAEL-846 code for a syncrhonous queue article

* BAEL-814 Switched from Random to ThreadLocalRandom
2017-04-21 00:31:35 +02:00
Tomasz Lelek 2648a4ec25 Bael 845 transfer queue (#1697)
* BAEL-845 tranferqueue article

* BAEL-845 m to m example

* BAEL-845 move code to test

* BAEL-845 use tryTransfer

* BAEL-845 proper if logic

* BAEL-845 proper test

* BAEL-845 robust test
2017-04-20 23:05:44 +02:00
Tomasz Lelek e37ab29a42 BAEL-845 transfer queue (#1676)
* BAEL-845 tranferqueue article

* BAEL-845 m to m example

* BAEL-845 move code to test

* BAEL-845 use tryTransfer

* BAEL-845 proper if logic
2017-04-20 02:25:42 +02:00
Tomasz Lelek f204b6167d Bael 779 kotlin generics (#1671)
* Kotlin Generics code

* wrote rest of the tests

* sorting impl

* proper val name

* fix typo

* better assert
2017-04-18 13:29:18 +02:00
Tomasz Lelek 576298dc7b Bael 779 kotlin generics (#1614)
* Kotlin Generics code

* wrote rest of the tests

* sorting impl

* proper val name

* fix typo
2017-04-17 20:32:03 +02:00
Tomasz Lelek 5e0d1e88ef BAEL-814 unsafe (#1645)
* code for the unsafe article

* more descriptive example

* proper eng

* better test name

* free memory call

* java 8 style
2017-04-15 17:34:56 +02:00
Tomasz Lelek a5879bf8b7 Bael 822 thread local (#1625)
* code for thread local article

* userNameSecret

* better to string

* fix typo
2017-04-13 21:16:53 -05:00
Tomasz Lelek 2ac22b3ffc Bael 766 flink (#1644)
* BAEL-756 code for flink article

* reorder

* simpler wordCount example

* BAEL-766 changes according to PR

* BAEL-766 change datasource to dataset

* BAEL-766 add sorting example

* BAEL-766 add simple streaming example

* one missing change to dataSet

* windowing example

* add window example

* add dependency explicitly

* add plugin

* add surefire plugin, change neme of the test to *IntegrationTest

* fluent assertions

* test scope

* remove duplicated dep
2017-04-13 15:02:22 +02:00
Tomasz Lelek f5991d1eeb readme (#1631) 2017-04-13 10:06:52 +02:00
Tomasz Lelek 3286018dd2 Bael 766 flink (#1632)
* BAEL-756 code for flink article

* reorder

* simpler wordCount example

* BAEL-766 changes according to PR

* BAEL-766 change datasource to dataset

* BAEL-766 add sorting example

* BAEL-766 add simple streaming example

* one missing change to dataSet

* windowing example

* add window example

* add dependency explicitly

* add plugin

* add surefire plugin, change neme of the test to *IntegrationTest

* fluent assertions
2017-04-11 13:08:11 +02:00
Tomasz Lelek 3fd20f6479 Bael 770 jetty (#1629)
* BAEL-770 add jetty simple test case

* BAEL-770 jetty async and blocking servlets

* BAEL-766 reorder

* increment version

* configuration thread pool
2017-04-10 15:10:33 +02:00
Tomasz Lelek a5de78c2b2 Bael 766 flink (#1533)
* BAEL-756 code for flink article

* reorder

* simpler wordCount example

* BAEL-766 changes according to PR

* BAEL-766 change datasource to dataset

* BAEL-766 add sorting example

* BAEL-766 add simple streaming example

* one missing change to dataSet

* windowing example

* add window example

* add dependency explicitly

* add plugin

* add surefire plugin, change neme of the test to *IntegrationTest
2017-04-09 12:23:57 +02:00
Tomasz Lelek eb26f83cd1 Bael 770 jetty (#1548)
* BAEL-770 add jetty simple test case

* BAEL-770 jetty async and blocking servlets

* BAEL-766 reorder
2017-04-04 22:48:41 +02:00
Tomasz Lelek 44e63c68f2 Bael 769 javers (#1543)
* BAEL-769 code for javers article

* BAEL-769 add more examples
2017-04-02 23:54:28 +02:00
Tomasz Lelek 6f75ad86a6 Bael 756 (#1531)
* BAEL-756 code for kotlin null-safety article

* BAEL-756 fix typo

* BAEL-756 increment version of Kotlin

* BAEL-756 remove duplicate form pom

* BAEL-756 add also and run example
2017-03-29 13:41:37 +02:00
Tomasz Lelek 1a7ccb8248 Bael 756 (#1513)
* BAEL-756 code for kotlin null-safety article

* BAEL-756 fix typo

* BAEL-756 increment version of Kotlin

* BAEL-756 remove duplicate form pom
2017-03-28 21:14:32 -05:00
Tomasz Lelek 52eb7c2bc4 Bael 738 (#1504)
* BAEL-724 code for put/patch article

* BAEL-724 fix typo

* BAEL-728 more generic patch approach

* BAEL-738 change url of PUT method

* fix route confict
2017-03-26 15:56:20 +02:00
Tomasz Lelek 21f9df6330 Bael 518 protobuffer (#1400)
* BEEL-518 code for protobuf article

* BEEL-518 add generated protobuf class

* BEEL-550 use newest version of protobuff

* BAEL-518 Small refactoring in protobuffer module

* BEEL-518 simpler protobuf example

* BEEL-518 proper package
2017-03-25 11:14:09 +01:00
Tomasz Lelek 2d556cd763 Bael 738 (#1478)
* BAEL-724 code for put/patch article

* BAEL-724 fix typo

* BAEL-728 more generic patch approach
2017-03-24 15:29:14 +01:00
Tomasz Lelek b01c2c5a94 Bael 361 jackson streaming (#1459)
* BAEL-361 tests for Streaming API

* BAEL-361 do not use deprecated API

* BAEL-361 return to not read whole json document, only needed field
2017-03-23 13:46:32 +01:00
Tomasz Lelek b95a014c8a BAEL-738 (#1456) PUT and PATCH
* BAEL-724 code for put/patch article

* BAEL-724 fix typo
2017-03-20 17:54:02 +01:00
Tomasz Lelek 29645fc0d1 BAEL-724 (#1422) Property testing with Javaslang
* BAEL-724 add javaslang test and property testing example

* BAEL-724 make test more readable

* BAEL-724 change missspelled word to the Remainder
2017-03-20 12:18:41 +01:00
Tomasz Lelek 5cd552a16b BAEL-634 javassist (#1349)
* BEEL-634 javassist dependency

* BEEL-634 code for javassist article

* BEEL-634 test refinement

* BEEL-634 increment lib to newest version

* add test that uses reflection to verify

* add field

* add bytecode to different class
2017-03-15 10:51:33 +01:00
Tomasz Lelek 8dcb9af712 BAEL-518 google protocol buffers
* BEEL-518 code for protobuf article

* BEEL-518 add generated protobuf class

* BAEL-701 updated the method argument

* BEEL-550 use newest version of protobuff

* Bael 389 - Building URL dynamically between host and pathname (#1323)

* Project for " A Guide to the Java API for WebSocket" article

* Setting dependencies correctly

* Formatting adjustments

* Removing tomcat7 maven plugin

* Applying formatt - No spaces

* BAEL-389 - Building URL dynamically between host and pathname

* Rename classes (#1331)

* BAEL-550 Axon framework

* BEEL-550 create axon module

* BEEL-550 proper naming

* BEEL-550 better example of message service

* BEEL-550 proper name of method

* BEEL-550 remove not needed comments

* BEEL-550 proper message

* BEEL-550 axon test scope test

* BEEL-550 tries to migrate to axon 3

* BEEL-550 migrate to vesrion 3 successfull

* ACO refactor

* BAEL-518 Small refactoring in protobuffer module
2017-03-09 15:59:18 +01:00
Tomasz Lelek a419237226 BAEL-550 Axon framework
* BEEL-550 create axon module

* BEEL-550 proper naming

* BEEL-550 better example of message service

* BEEL-550 proper name of method

* BEEL-550 remove not needed comments

* BEEL-550 proper message

* BEEL-550 axon test scope test

* BEEL-550 tries to migrate to axon 3

* BEEL-550 migrate to vesrion 3 successfull
2017-03-08 10:45:51 +01:00
Tomasz Lelek e1d136368b BAEL-311 move jasypt to libraries module (#1309)
* BEEL-311 move jasypt to libraries module

* BAEL-9: README.md file updated (#1310)

* BAEL-278: Updated README.md

* BAEL-554: Add and update README.md files

* BAEL-345: fixed assertion

* BAEL-109: Updated README.md

* BAEL-345: Added README.md

* Reinstating reactor-core module in root-level pom

* BAEL-393: Adding guide-intro module to root pom

* BAEL-9: Updated README.md

* Guide to "when" block in Kotlin pull request (#1296)

* Char array to string and string to char array test cases added

* Minor code renames

* Added groupingBy collector unit tests

* Added test case for int summary calculation on grouped results

* Added the grouping by classes to the main source path

* Reverting char array to string test class

* Reverting char array to string test class

* Reverting char array to string test class

* Reverting char array to string test class

* Unit test class for Kotlin when block + required types

* Minor changes to kotlin when block tests

* Minor change

* Minor change

* Bael 655 (#1256)

BAEL-655 hbase

* Remove unnecessary files and update .gitignore (#1313)

* BAEL-311 Removed jasypt module from parent pom (moved into libraries module)
2017-03-06 18:04:28 +01:00
Tomasz Lelek 1ff8b4c69c Bael 655 (#1256)
BAEL-655 hbase
2017-03-06 11:34:27 +01:00
Tomasz Lelek f57a7ddaed Bael 641 (#1282)
* BEEL-641 guava reflection utils code

* BEEL-641 fix formatting

* BEEL-641 add assertion on subttype number -> integer

* BEEL-641 rename class

* BEEL-641 formatting

* BEEL-641 add comparison using standard java reflecetion api and guava one
2017-03-03 06:15:34 +01:00
Tomasz Lelek d67ace8e1e BAEL-655 test for partially apllied function (#1227)
* BAEL-655 test for partially apllied function

* BAEL-655 example of tuple transformation
2017-02-24 16:19:28 +01:00
Tomasz Lelek f772286896 BAEL-669 test of an infinite stream (#1126)
* BAEL-669 test of an infinite stream

* BAEL-699 example of custom type infinite stream

* BAEL-699 do..while stream way

* BAEL-669 generate stream of random uuids
2017-02-12 11:22:25 +02:00
Tomasz Lelek fb50f56cfd BAEL-424 code for javaslang Try (#1068)
* BAEL-424 code for javaslang Try

* BAEL-424 more api examples of try

* BAEL-424 less verbose names of test, two exceptions types in pattern matching
2017-01-31 21:46:46 +01:00
Tomasz Lelek afa9292544 Merge branch 'master' into BAEL-614 2017-01-29 11:43:17 +01:00
Tomasz Lelek 1d71f63693 Bael 19 jackson inheritance (#954)
* BAEL-19 event inheritance

* BAEL-19 test for json inheritance

* BAEL-19 example event processor

* BAEL-19 do not need json ignore

* BAEL-19 simpler event, example of abstract

* BAEL-19 ignoring superclass property

* BAEL-586 change class event names
2017-01-19 08:48:48 +01:00
Tomasz Lelek 4d8949f659 Custom media types rest (#946)
* Custom Media Types for REST

* add test, add DTO, remove example of API versioning to make example simpler

* client accept only that custom-media type

* remove not needed new_line

* leave custom media type on class level

* do not need content type header

* GET do not need content-Type

* add liveTest for custom Content type

* Merge branch 'master' of https://github.com/eugenp/tutorials into Custom_media_types_rest

# Conflicts:
#	spring-rest/src/main/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeController.java
#	spring-rest/src/main/java/org/baeldung/web/dto/BaeldungItem.java
#	spring-rest/src/test/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeControllerTest.java

* test name proper given_when_then pattern

* add custom content-type 'application/json-p'

* import proper class

* proper test name

* proper API migraton test, SecondBaeldungItem breaks backward compatibility

* add proper endpoint
2016-12-30 15:15:55 -06:00
Tomasz Lelek 4305025d42 Custom media types rest (#944)
* Custom Media Types for REST

* add test, add DTO, remove example of API versioning to make example simpler

* client accept only that custom-media type

* remove not needed new_line

* leave custom media type on class level

* do not need content type header

* GET do not need content-Type

* add liveTest for custom Content type

* Merge branch 'master' of https://github.com/eugenp/tutorials into Custom_media_types_rest

# Conflicts:
#	spring-rest/src/main/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeController.java
#	spring-rest/src/main/java/org/baeldung/web/dto/BaeldungItem.java
#	spring-rest/src/test/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeControllerTest.java

* test name proper given_when_then pattern

* add custom content-type 'application/json-p'

* import proper class

* proper test name

* proper API migraton test, SecondBaeldungItem breaks backward compatibility
2016-12-30 13:14:25 -06:00
Tomasz Lelek 0e163811ac Custom media types rest (#939)
* Custom Media Types for REST

* add test, add DTO, remove example of API versioning to make example simpler

* client accept only that custom-media type

* remove not needed new_line

* leave custom media type on class level

* do not need content type header

* GET do not need content-Type

* add liveTest for custom Content type

* Merge branch 'master' of https://github.com/eugenp/tutorials into Custom_media_types_rest

# Conflicts:
#	spring-rest/src/main/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeController.java
#	spring-rest/src/main/java/org/baeldung/web/dto/BaeldungItem.java
#	spring-rest/src/test/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeControllerTest.java
2016-12-29 16:44:21 -06:00
Tomasz Lelek cbf878ba34 Custom Media Types for REST (#918)
* Custom Media Types for REST

* add test, add DTO, remove example of API versioning to make example simpler

* client accept only that custom-media type

* remove not needed new_line

* leave custom media type on class level
2016-12-28 08:33:04 -06:00