Commit Graph

65 Commits

Author SHA1 Message Date
José Carlos Valero Sánchez 4afec1b4f4
Merge pull request #5449 from kcacademic/kotlin-interfaces
Adding files for the article BAEL-2206
2018-10-16 09:03:41 +01:00
Kumar Chandrakant bae7a74acd Adding files for the article BAEL-2206 2018-10-12 10:54:04 +01:00
Andrey Shcherbakov 44a3d36bd9 Implement a binary tree (#5431)
* Add code for the article 'Java Primitives versus Objects'

* Use JMH for benchmarking the primitive and wrapper classes

* Uncomment the benchmarks and remove unused class

* Add a binary search tree implementation

* Add an example of how to use the binary tree class

* Adjust the print statements
2018-10-11 22:16:54 -07:00
Loredana Crusoveanu 0b792c58f2
Update and rename StructuralJumpTest.kt to StructuralJumpUnitTest.kt 2018-10-03 21:29:42 +03:00
Hai Nguyen 9eb81e7059 change example 2018-10-02 10:45:31 +08:00
Hai Nguyen 2c6a3a69b0 change example 2018-10-02 10:43:04 +08:00
nnhai1991@gmail.com 3b4e23cedf refactor some code 2018-09-30 23:40:19 +08:00
Hai Nguyen 6c0c94449d StructuralJumpTest 2018-09-28 10:01:45 +08:00
Hai Nguyen df99b29fb3 test cases 2018-09-28 10:00:44 +08:00
nnhai1991@gmail.com af993076f1 LoopTest class 2018-09-26 23:24:26 +08:00
Grzegorz Piwowarek 8455646125
Rename CoroutinesTest.kt to CoroutinesUnitTest.kt (#5281) 2018-09-17 22:15:58 +02:00
Hai Nguyen 9108183846 BAEL-2147 Kotlin Data Class from Json using GSON (#5220)
* BAEL-1846: Java Image to Base64 String

* Move from using main method to Junit test

* Update to use environment variables for testing

* reformat and add test file

* spring boot jsp security taglibs

* add more test

* add more test

* refactor spring config

* refactor spring config

* Update README.md

* fi alignment

* fix requested comments

* additional tests and content

* additional tests and content

* update examples

* Delete Readme file

* edit form example

* adding example for spring boot security tag libs

* Remove old tag libs module

* BAEL-2147 Add GsonTest

* BAEL-2147 Remove unused import
2018-09-16 09:02:36 -07:00
Krzysztof Majewski 2e0edf12b1 Bael 2145 concatenate strings in kotlin (#5208)
* BAEL-2145

* BAEL-2145

* BAEL-2145
2018-09-15 15:57:25 +02:00
Graham Cox 57b6480e73 Examples for article on Kovenant (#5011)
* Examples of Reflection in Kotlin

* Some article updates to make better use of Assert

* Replaced printlines with log statements

* Added @Ignore to so tests with no assertions

* Examples for Kovenant

* Fixed an issue where tests fail depending on the order they are run

* Test for timeouts on promises
2018-09-11 05:43:35 +02:00
amit2103 3ce0294470 [BAEL-8472] - Removed unused dependencies, moved spek and exposed framework codes to kollin libraries 2018-09-09 15:53:48 +05:30
amit2103 9e2a18a6d5 [BAEL-8472] - Resolved conflict 2018-09-09 11:01:53 +05:30
freddyaott a2f77a2783 [BAEL-1401] Fuel HTTP Library with Kotlin (#5142)
* builder pattern in kotlin

* builder pattern in kotlin new-line

* deleted Sandbox, added unit test

* add other tests

* named and default parameters builder

* Make FoodOrderNamed a data class

* idiomatic Kotlin version

* Fuel HTTP library

* fuel pom property

* BAEL-1401 Removed extra pom.xml properties
2018-09-06 03:45:42 +02:00
Alessio Stalla 64ba651582 #BAEL-693 tests and code examples. (#5091) 2018-08-27 22:32:15 +02:00
Tom Hombergs 3d3dfd7970
Merge pull request #4760 from MajewskiKrzysztof/master
BAEL-1912
2018-08-19 16:41:59 +02:00
Grzegorz Piwowarek cb86a05efd
Kotlin Builder example refactor (#4895)
* encoding

* Refactor builder

* Usage

* Builder as data class
2018-08-18 14:01:01 +02:00
Patryk 061d1191f1 Bael 1704 (#4973)
* BAEL-1704: Non-Trivial Work in Kotlin vs Java

* BAEL-1704: Non-Trivial Work in Kotlin vs Java

Renaming one test class

* BAEL-1704: Kotlin vs Java

* BAEL-1704: Kotlin vs Java

The files moved to the guest branch.
2018-08-17 08:00:08 -05:00
Loredana Crusoveanu fad21ead40
Merge pull request #4979 from dkapil/task/BAEL-8231
BAEL-8231 Disabled "is working" statement in a test case in Coroutine…
2018-08-16 22:47:39 +03:00
Dhawal Kapil cecb8f2c2c BAEL-8231 Disabled "is working" statement in a test case in CoroutinesTest.kt 2018-08-17 00:19:06 +05:30
Juan Moreno 74e3e7ff95 Kotlin Nested and Inner Classes Code SampleCode
Issue: BAEL-1759
2018-08-13 17:33:36 -06:00
Kacper 4cd349f533 Kotlin constructors (#4933) 2018-08-10 21:10:15 +02:00
eelhazati 570e33dc1a move sse-jaxrs module under apache-cxf module. 2018-08-10 11:59:44 -07:00
Krzysztof Majewski 83cba874f2 Merge branch 'master' of https://github.com/eugenp/tutorials 2018-08-10 09:30:51 +02:00
amit2103 d268ffa5c9 [BAEL-7670] Added logback.xml in missing modules in src/main/resources 2018-08-05 18:40:49 +05:30
Patryk cae67c041e BAEL-1704: Non-Trivial Work in Kotlin vs Java (#4861)
* BAEL-1704: Non-Trivial Work in Kotlin vs Java

* BAEL-1704: Non-Trivial Work in Kotlin vs Java

Renaming one test class
2018-08-04 17:51:01 -05:00
freddyaott 4aa77eb55d BAEL-1840 Builder Pattern in Kotlin (#4730)
* builder pattern in kotlin

* builder pattern in kotlin new-line

* deleted Sandbox, added unit test

* add other tests

* named and default parameters builder

* Make FoodOrderNamed a data class
2018-08-03 03:11:35 +01:00
Krzysztof Majewski 9b05faa15f BAEL-1912 fix 2018-07-23 07:54:10 +02:00
Alessio Stalla 416a88eae5 BAEL-1838 (#4692)
* #BAEL-1838 code samples. Renamed LambdaKotlinTest to have the build succeed.

* #BAEL-1838 code samples w/inheritance.

* #BAEL-1838 renamed logger helper function to getLogger to avoid confusion.

* #BAEL-1838 renamed logger helper function to getLogger to avoid confusion.
2018-07-20 07:16:13 +02:00
Krzysztof Majewski 182a883742 BAEL-1912 2018-07-19 10:13:30 +02:00
Dhawal Kapil 5a5ac7bca0 BAEL-1987 Fix Tests and Compilation In All Projects (#4699)
* BAEL-1987 Fix Tests and Compilation In All Projects

-Fixed test failure in core-kotlin project, include core-kotlin back in parent pom

* Update pom.xml

* BAEL-1987 Fix tests and libraries

-Commented out failing assertion
2018-07-13 17:49:11 +02:00
Dhawal Kapil 8270c6d61a BAEL-1987 Fix Tests and Compilation In All Projects (#4693)
* BAEL-1987 Fix Tests and Compilation In All Projects

-Fixed various compilation issues, test assertions throughout the project.

* Update pom.xml
2018-07-13 00:07:27 +02:00
Loredana Crusoveanu 7ab2a2c181 moven kotlin-maven project 2018-07-11 22:28:11 +03:00
Syed Mansoor 396df6fdca [BAEL-1753] Moved Kotlin-ktor in core-kotlin module 2018-07-03 21:16:12 +10:00
Andrey Shcherbakov 0e97b9d21b Add the code snippets of the Kotlin String Template article (#4541) 2018-06-26 13:37:43 -07:00
Graham Cox d1e092b850 Examples of Reflection in Kotlin (#4483)
* Examples of Reflection in Kotlin

* Some article updates to make better use of Assert

* Replaced printlines with log statements

* Added @Ignore to so tests with no assertions
2018-06-26 07:30:55 +01:00
Grzegorz Piwowarek 6dad233602 BAEL-1758 Idiomatic Kotlin usage in enum (#4434) 2018-06-09 11:29:35 +02:00
Devesh Chanchlani 8080f07c6c BAEL-1758: removing helper class and adding static functions to the Kotlin Enum example (#4419) 2018-06-07 08:18:48 +02:00
Devesh Chanchlani be608ae4fb BAEL-1758: Working with Enums in Kotlin (#4413) 2018-06-06 01:20:26 +02:00
Juan Moreno 4308468c60 Sample code for BAEL-1399 (#4165)
* Squashed commit of the following:

commit b31955df9638a6217a804e61faa230d8eacb293b
Author: Juan Moreno <earth001@gmail.com>
Date:   Wed Feb 21 22:45:52 2018 -0300

    Sample code for BAEL-1159 - Working with Kotlin and JPA - earth001@gmail.com

* Squashed commit of the following:

commit 4e6e27c914a401ee6bc599c7ffe913384137646a
Author: Juan Moreno <earth001@gmail.com>
Date:   Wed Feb 21 23:26:20 2018 -0300

    Fix package names

commit b31955df9638a6217a804e61faa230d8eacb293b
Author: Juan Moreno <earth001@gmail.com>
Date:   Wed Feb 21 22:45:52 2018 -0300

    Sample code for BAEL-1159 - Working with Kotlin and JPA - earth001@gmail.com

* Added sample with null fields

* Removed unused dependency

* BAEL-1159 - Simplified example

* Code sample to BAEL-1399

* Code sample to BAEL-1399

* Sample code for BAEL-1399

* Sample code for BAEL-1399

* Sample code for BAEL-1399

* Upgrade to Klaxon 3.0.2, polish test

* Added sample with annotations

* Upgrade dependencies

* Ugrade library version, added JSON Path sample

* Reverted changes
2018-05-26 11:19:25 -05:00
Graham Cox b677208899 Examples for Spek article (#4106)
* Examples for BAEL-1169

* Examples for Spek
2018-05-11 14:35:04 +02:00
José Carlos Valero Sánchez 2a61d6473b
Merge pull request #4029 from theawesomenayak/BAEL-1675
[BAEL-1675] Write to a File in Kotlin
2018-05-05 14:13:49 +01:00
Siben Nayak c2d89c8679 Fixed unit test cases and formatting 2018-05-05 18:24:13 +05:30
pauljervis c5af483a8d Kotlin Lambda Article Code (#4100)
* Add Kotlin lambdas and tests from Java and Kotlin

* Add the actual code under test

* Add different types of lambdas performing the same action.
2018-05-01 12:56:40 +02:00
pauljervis ce5113c48c Bael 1404 kotlin (#4033)
* add article files

* update kotlin version in pom

* IntelliJ added binary folder to all the .gitignores

* IntelliJ added binary folder to all the .gitignores

* update test function names

* Expand tests and add more code for more meaningful content within the article.
Remove core-kotlin from parent pom again for eclipse to work.

* adjust for issues with custom-pmd

* rename test

* Revert "IntelliJ added binary folder to all the .gitignores"

This reverts commit 0850a2acd5162499540231146c795cfda9ffcfc5.

* Revert "IntelliJ added binary folder to all the .gitignores"

This reverts commit 2b17cf2ff3624ecbe37f07bb9985ecfd3a977e01.

* renamed test to match article
2018-04-17 17:37:14 +02:00
pauljervis d7eaa00804 Bael 1601 kotlin (#4016)
* add article files

* update kotlin version in pom

* IntelliJ added binary folder to all the .gitignores

* IntelliJ added binary folder to all the .gitignores

* update test function names

* Expand tests and add more code for more meaningful content within the article.
Remove core-kotlin from parent pom again for eclipse to work.

* adjust for issues with custom-pmd

* rename test

* Revert "IntelliJ added binary folder to all the .gitignores"

This reverts commit 0850a2acd5162499540231146c795cfda9ffcfc5.

* Revert "IntelliJ added binary folder to all the .gitignores"

This reverts commit 2b17cf2ff3624ecbe37f07bb9985ecfd3a977e01.
2018-04-17 14:09:34 +02:00
Grzegorz Piwowarek b284c29a43
Fix FileReaderTest (#3996) 2018-04-14 10:00:24 +02:00