712 Commits

Author SHA1 Message Date
Loredana Crusoveanu
544cd5253c
Merge pull request #3688 from harshjain25/BAEL-1526-string-comparison
BAEL-1526 : Comparing strings in Java
2018-02-18 13:50:41 +02:00
Harsh Jain
5aa81d9be3 BAEL-1526 : added exmaple unit test cases for string comparison 2018-02-18 12:19:44 +05:30
Nguyen Nam Thai
7debccf695 Fix a test 2018-02-18 11:08:00 +07:00
Nguyen Nam Thai
c1787cc07a Change the test method names 2018-02-18 11:05:00 +07:00
Andrea Ligios
2a127b3df3 . (#3687) 2018-02-17 12:40:01 -08:00
andrea
b63caab397 . 2018-02-17 18:30:36 +01:00
Nam Thai Nguyen
08d53a2cbb Change the names of test methods 2018-02-17 11:45:03 +07:00
Nam Thai Nguyen
a67d99a09a Initial commit for List TDD 2018-02-14 17:10:18 +07:00
Alejandro Gervasio
4f6988b134 Method Overloading and Overriding in Java - BAEL-1507 (#3621)
* Initial Commit

* Update Multiplier.java

* Refactored MethodOverridingUnitTest class

* Update Car.java

* Update Vehicle.java

* Update MethodOverridingUnitTest.java

* Update MethodOverridingUnitTest.java

* Fix package names
2018-02-13 21:08:31 -06:00
Shouvik Bhattacharya
4d64a12271 BAEL-1525: Review comments incorporated. (#3639) 2018-02-12 05:58:06 +01:00
Loredana Crusoveanu
4c044fcaee remove imports 2018-02-10 17:45:01 +02:00
Loredana Crusoveanu
50deec5b5c refactor streams ex 2018-02-10 17:42:52 +02:00
shouvikbhattacharya
9d9045f130 BAEL-1525: New changes added. 2018-02-08 21:04:46 +05:30
shouvikbhattacharya
6887bc10d1 BAEL-1525: More changes. 2018-02-07 20:29:35 +05:30
Raksha Rao
20b8dbffc4 sample class loader 2018-02-05 15:45:51 +05:30
Raksha Rao
2f31b4a8cc classloader example 2018-02-05 11:09:34 +05:30
shouvikbhattacharya
581e8592ae BAEL-1525: Article code completed. 2018-02-04 18:22:17 +05:30
myluckagain
55660e7702 BAEL-1497 (#3568) 2018-02-01 23:17:53 +01:00
Nam Thai Nguyen
7e6cb22c7d Merge branch 'master' into BAEL-1479 2018-01-21 23:39:47 +07:00
Nam Thai Nguyen
30321eb801 initial commit for the BAEL-1479 2018-01-21 23:37:11 +07:00
Grzegorz Piwowarek
0293c65f77
Trie Examples (#3466)
* Implement Trie

* Implement TrieTest

* Delete testDelete method

* Refactorings

* Refactor Trie

* Refactor TrieNode

* Refactor Trie
2018-01-20 11:54:24 +01:00
Doha2012
bff36974cd create core-java-io module (#3397)
* make sure modules using java8

* move url matching code

* upgrade boot parent

* minor cleanup

* fix blocking tests

* add core-java-io module
2018-01-12 15:30:30 +01:00
Igor Kugaudo
fd9d956be3 BAEL-1351 RegEx for matching Date Pattern in Java (#3217)
* kugaudo/igor@kugaudo.com

* BAEL-1351 RegEx for matching Date Pattern in Java

* BAEL-1351 RegEx for matching Date Pattern in Java

* BAEL-1351 RegEx for matching Date Pattern in Java

* Fixed names of test methods

* Refactored class names, split unit tests by classes

* Reordered test cases in Gregorian date matcher unit test, formatted code

* Added override annotation

* Renamed mather main method for better semantics

* Fixed names of test methods

* Split Gregorian date matcher to separate branches

* Fixed test cases according to the article

* Revert "Merge branch 'master' into datepattern"

This reverts commit 0d57456140bc9e1f36d32b3e707acd2729b2c60f, reversing
changes made to c768132dcd24d4312567298f34c67cb31dcde9f8.
2018-01-08 17:24:28 +00:00
Tarang Bhalodia
12a1924cb3 BAEL-1422: added BDD style test for asserting UnsupportedOperationException while setting seed for ThreadLocalRandom 2018-01-02 23:47:39 +05:30
Tarang Bhalodia
036fabc9f7 BAEL-1422: added BDD style tests for generating random values using ThreadLocalRandom 2018-01-02 22:38:50 +05:30
Marcos Lopez Gonzalez
5e25e2c3ea BAEL -1339 Implement a binary tree in Java (#3301)
* edge cases binary tree

* code cleanup
2017-12-28 13:16:38 +01:00
Loredana Crusoveanu
b18c4deb3f remove extra serialization ex 2017-12-23 22:36:56 +02:00
Loredana Crusoveanu
cc39f18d21
Merge pull request #3208 from Ahmad-alsanie/master
BAEL-1329 A Guide to Java Initialization
2017-12-23 22:28:30 +02:00
Victor Ikoro
52edd46c0a BAEL-1371 - Guide to Cipher class (#3150)
* Bean Injection Types

* Bean Injection Types

* Bean Injection Types

* Bean Injection Types -  Added / Fixed tests

* BAEL-1371 Encryptor class

* BAEL-1371 Modified Encryptor class, added encryptor test

* BAEL-1371 Modified Encryptor class, added encryptor test

* BAEL-1371 removed spring core files

* BAEL-1371 Update test, new line for "when" and "then" logic

* BAEL-1371 Fixed tests

* BAEL-1371 cleanup and assertj assertions
2017-12-21 21:39:55 -06:00
Shouvik Bhattacharya
d14cc42306 BAEL-1438: TreeMap vs HashMap (#3265)
* BAEL-1438: Final code.

* BAEL-1438: Temporary commit.

* BAEL-1438: New Changes.

* BAEL-1438: New test case to support Java 8 features.
2017-12-21 08:44:27 -08:00
Binesh Narayanan
94ace2eda8 BAEL-1348 | BatchProcessing example using jdbc (#3216)
* BAEL-EVAL | Adding an example to demo Bean Injection

### Changes done
A Spring boot app to demo bean injection

* Adding @Autowired for Constructor Injection

* BAEL-EVAL | Correcting the method name

* BAEL-EVAL

* BAEL-1348 | Adding example of Batch Processing in JDBC

### Changes done
- Added one example using statement
- Added one example using preparedstatement

* Removing evaluation article

* BAEL-1348 | Adding example of Batch Processing in JDBC

### Changes done
- Added an example using statement
- Added an example using preparedstatement

* BAEL-1348 | BatchProcessing example using jdbc

### Changes done
- Add example using statement
- Add example using PreparedStatement
- Add Unit Tests

* BAEL-1348 | Changes to pom.xml and refactoring UnitTest

* BAEL-1348 | Removing the example using spring-boot
2017-12-19 07:37:35 +01:00
shouvikbhattacharya
6b323c45cc BAEL-1433: Minor changes. 2017-12-16 21:28:03 +05:30
Pazis
a5f78cf7d5 BAEL-1308 - Copy a File with Java (#3000)
* Create Student.java

* Create ApplicationContextTestBeanInjection.java

* Update Student.java

* added tests

added tests

* BAEL-1308

part 1

* Create test_stream.txt

* Create test_files.txt

* Create test_channel.txt

* Create test_apache.txt

* Create test.txt

* Delete test.txt

* Create readme.txt

* Delete Student.java

* Delete StudentInjectionTest.java

* Delete ApplicationContextTestBeanInjection.java
2017-12-16 13:18:09 +01:00
shouvikbhattacharya
ef4b560965 BAEL-1433: Article complete pushing final code. 2017-12-14 22:14:58 +05:30
shouvikbhattacharya
0d07e421ff BAEL-1433: Commit changes for treeset article. 2017-12-14 20:15:00 +05:30
bahti
b2ea831d83 inner interface examples added (#3151) 2017-12-11 18:31:52 +01:00
Marcos
a91c6659d6 Merge remote-tracking branch 'upstream/master' into tutorials/binaryTreeJava 2017-12-10 19:29:33 +01:00
Marcos
72d162ddc9 tests refactoring 2017-12-10 19:27:45 +01:00
Loredana Crusoveanu
763f0d59c5
Merge pull request #3210 from egoebelbecker/master
BAEL-1374 - use JMH. Move out of test area.
2017-12-09 20:19:58 +02:00
Marcos
7c82545377 tests renaming 2017-12-09 11:20:14 +01:00
ericgoebelbecker
b49844c3d8 BAEL-1374 - use JMH. Move out of test area. 2017-12-08 23:11:50 -05:00
Ahmad Alsanie
4b0a98f6b0 init commit - a guide to java initialization classes and resources 2017-12-08 15:50:47 +02:00
Marcos
9f3ce63cd9 Merge remote-tracking branch 'upstream/master' into tutorials/binaryTreeJava 2017-12-07 23:38:58 +01:00
Marcos
a391ecf04f BAEL-1339 - Implementing a binary tree in Java 2017-12-07 23:37:09 +01:00
ocheja
c0a730a3ac Replace string concatenations with String.format (#3201)
* Define beans for handling different message types in a lean chat app

* Add class based spring beans configuration

* Define spring configuration in XML for constructor based bean injection

* Refactor package structure to separate constructor based bean injection code set from setter based bean injection code set

* Define configuration and classes specific to setter-based bean injection.

* Implement tests for constructor-based and setter-based bean injections

* develop codes for explaining type erasure

* Write unit tests for type erasure examples

* Remove evaluation article code

* Modify type erasure examples and unit tests

* Modify type erasure examples and unit tests

* Add expected exception in TypeErasureUnitTest

* Correct grammar in class name

* Implement File Manager app to demonstrate Polymorphism. Develop unit tests for Polymorphism article code

* Add examples for static polymorphism

* Change sysout statments to slf4j log info statements

* Add assertions and expected errors check on Test

* Add assertions and expected errors check on Test

* Correct compile time error of symbol not found

* Removed commented out non-compiling test.

* Replace string concatenations with String.format

* Replace string concatenations with String.format
2017-12-07 10:24:49 +01:00
André Thiago
5477f80a1c BAEL-1328 (#3099)
* BAEL-1328 How to Invert an Array in Java

* Removing code from evaluation article.

* BAEL-1328
Adjusting spaces and implement inversion with commons lang3 and guava.

* BAEL-1328 Renaming unit test class; using AssertJ.
2017-12-05 20:43:23 -06:00
Ahmed Tawila
224c964801 Merge branch 'master' of https://github.com/eugenp/tutorials 2017-12-04 00:10:44 +02:00
Shouvik Bhattacharya
4e39bfb945 Bael-1305: A Guide to Java Loops (#3181)
* BAEL-1305: A Simple Guide to Java Loops.

* BAEL-1305: Updated article to add few more examples.
2017-12-02 21:54:36 +01:00
Shouvik Bhattacharya
3d0e68b4a9 Guide to HashSet (#3165) 2017-12-02 15:27:28 +01:00
ericgoebelbecker
89ab473651 BAEL-1374 - search an array. Name changes. 2017-12-01 18:02:13 -05:00