Commit Graph

583 Commits

Author SHA1 Message Date
Sameera 511d96614d PrintScreen code samples moved to core-java module 2016-10-20 23:10:17 +05:30
Nikhil Khatwani 4d54080b3e Fixed Failing EchoTest 2016-10-20 16:00:31 +05:30
maibin 04482ef902 Executable Jar Maven (#752)
* Expression-Based Access Control

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

* Added test cases for Spring Security Expressions

* Handler Interceptor - logging example

* Test for logger interceptor

* Removed conflicted part

* UserInterceptor (adding user information to model)

* Spring Handler Interceptor - session timers

* Spring Security CSRF attack protection with Thymeleaf

* Fix and();

* Logger update

* Changed config for Thymeleaf

* Thymeleaf Natural Processing and Inlining

* Expression Utility Objects, Thymeleaf

* listOfStudents edited

* Thymeleaf layout decorators

* Executable Jar with Maven
2016-10-17 11:10:12 +03:00
Naoshadul Islam 298c5e3091 Created README.md and added relevant articles (#742)
* Updated readme.md

* Updated readme.md

* Updated readme.md

* Updated readme.md

* Updated readme.md

* Updated readme.md

* Updated readme.md

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Updated readme.md

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Updated readme.md

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Updated readme.md

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Created README.md and added relevant articles

* Updated readme.md

* Updated readme.md

* Created README.md and added relevant articles

* Created README.md and added relevant articles
2016-10-16 13:25:05 +03:00
Grzegorz Piwowarek 51729209ed Remove unnecessary field initialization 2016-10-12 08:41:04 +02:00
Egima profile ea37b3e51a Added NIO Selector project under core-java (#738)
* made changes to java reflection

* removed redundant method makeSound in Animal abstract class

* added project for play-framework article

* added project for regex

* changed regex project from own model to core-java

* added project for routing in play

* made changes to regex project

* refactored code for REST API with Play project

* refactored student store indexing to zero base

* added unit tests, removed bad names

* added NIO Selector project under core-java module
2016-10-11 09:33:14 +02:00
maverick 6df151a3f9 Removes Sorting changes for this PR 2016-10-10 08:32:51 +05:30
maverick 9f3c791d99 Added files missed in earlier PR 2016-10-10 08:30:54 +05:30
maverick b8161aca1a Java sorting. Adding required files. This is commit for starting from
new fork due to conflicts in PR.
2016-10-10 08:14:51 +05:30
Grzegorz Piwowarek 2ef8bc2a68 Remove souts 2016-10-04 18:12:08 +02:00
Grzegorz Piwowarek f12e6ee2d0 Refactor FileNotFoundException examples 2016-10-04 18:11:37 +02:00
Álvaro Fernández González ee3db42880 Add more examples (#712)
* 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.

* [BAEL-178] Add collaborator for advanced article.

* [BAEL-178] Add link to readme.

* [BAEL-178] Add test for mockUp.

* [BAEL-178] Add test for invoke method.

* [BAEL-178] Add constructors and tests for mockup for constructors.

* [BAEL-178] Add private fields and more test for deencapsulation.

* [BAEL-178] Add inner class and test for instantiating inner classes.

* [BAEL-178] Multimocks.

* [BAEL-178] Add test for expectation reusing.

* [BAEL-178] Move test class to tests folders.

* Add postgresql dependency.

* Add test and config with properties.

* [BAEL-114] Add new project for JPA with JNDI.

* [BAEL-114] Config without xml.

* [BAEL-114] Bring part of Foo, FooServie and FooDao.

* [BAEL-114] Show all foos.

* [BAEL-114] Readme.

* [BAEL-114] Undo changes on main jpa project.

* [BAEL-114] Remove unnecesary dependencies.

* [BAEL-114] Add tomcat config.

* [BAEL-114] Fixes.

* Add tests for Optional streams.

* Add Java 9 version of the test.

* Rename and move to new core-java-9 module.

* Move contents from spring-jpa-jndi to spring-jpa and make necessary changes.

* Do not use try-catch on configuration.

* Add example for FileNotFoundException mini-article.

* Add more examples.

* Change examples to tests.
2016-10-04 07:53:52 +02:00
Egima profile 455c71ae71 3 major changes (#716)
* made changes to java reflection

* removed redundant method makeSound in Animal abstract class

* added project for play-framework article

* added project for regex

* changed regex project from own model to core-java

* added project for routing in play

* made changes to regex project

* refactored code for REST API with Play project
2016-10-03 21:06:01 +02:00
Álvaro Fernández González c5fd46e5f2 Code for FileNotFoundException article. (#710)
* 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.

* [BAEL-178] Add collaborator for advanced article.

* [BAEL-178] Add link to readme.

* [BAEL-178] Add test for mockUp.

* [BAEL-178] Add test for invoke method.

* [BAEL-178] Add constructors and tests for mockup for constructors.

* [BAEL-178] Add private fields and more test for deencapsulation.

* [BAEL-178] Add inner class and test for instantiating inner classes.

* [BAEL-178] Multimocks.

* [BAEL-178] Add test for expectation reusing.

* [BAEL-178] Move test class to tests folders.

* Add postgresql dependency.

* Add test and config with properties.

* [BAEL-114] Add new project for JPA with JNDI.

* [BAEL-114] Config without xml.

* [BAEL-114] Bring part of Foo, FooServie and FooDao.

* [BAEL-114] Show all foos.

* [BAEL-114] Readme.

* [BAEL-114] Undo changes on main jpa project.

* [BAEL-114] Remove unnecesary dependencies.

* [BAEL-114] Add tomcat config.

* [BAEL-114] Fixes.

* Add tests for Optional streams.

* Add Java 9 version of the test.

* Rename and move to new core-java-9 module.

* Move contents from spring-jpa-jndi to spring-jpa and make necessary changes.

* Do not use try-catch on configuration.

* Add example for FileNotFoundException mini-article.
2016-10-01 10:47:34 +02:00
Eugen 50990c622f Merge pull request #674 from joshiparthin/parth-md5
Parth md5
2016-09-29 14:20:32 +03:00
maverick 758c5f7319 Removed files not useful in this branch for MD5 article. 2016-09-29 15:06:45 +05:30
Egima profile f3b8bb0f14 Moved regex from own module to core-java (#707)
* made changes to java reflection

* removed redundant method makeSound in Animal abstract class

* added project for play-framework article

* added project for regex

* changed regex project from own model to core-java
2016-09-28 23:43:59 +02:00
Nancy Bosecker 7aaae1d143 Moved project to core-java from eclipse folder (#703) 2016-09-27 07:40:46 +02:00
Grzegorz Piwowarek 19798c4bd6 Refactor ArrayListTest 2016-09-22 18:16:37 +02:00
Grzegorz Piwowarek d9a7757602 Reformat code 2016-09-12 22:02:51 +02:00
zinch84 314c211fa2 Array list demo (#679)
* Create ArrayList demo

* Update code samples according to the article

* Use toCollection(ArrayList::new) instead of toList()
2016-09-10 15:50:35 +02:00
zinch84 7ba9a1288b Array list demo (#677)
* Create ArrayList demo

* Update code samples according to the article
2016-09-08 10:04:55 +02:00
maverick 739502694f md5 changes 2016-09-07 09:30:34 +05:30
Egima profile 15dd97b485 removed redundant makeSound sound method of abstract class Animal (#668)
* made changes to java reflection

* removed redundant method makeSound in Animal abstract class
2016-09-05 12:12:30 +02:00
Egima profile fc1bb6b7b1 made changes to java reflection (#667) 2016-09-05 09:20:45 +02:00
Grzegorz Piwowarek 98ffbc1f37 Refactor ArrayList examples 2016-09-04 10:02:21 +02:00
Alex Theedom 20e52971a7 Migrate Reflection code to Core-Java module 2016-09-04 08:02:40 +01:00
maverick d18e64037e Changes for naming conventions in test functions 2016-08-31 19:29:25 +05:30
zinch84 b4e0135927 Create ArrayList demo (#643) 2016-08-28 07:47:47 +02:00
slavisa-baeldung b98e03b72b Merge pull request #616 from christian-raedel/craedel-shell-commands
Craedel shell commands
2016-08-23 09:06:58 +02:00
eugenp 58bf2bf3ea new test 2016-08-22 12:32:17 +03:00
maverick 94f08d43af sort variant and parallel sort added 2016-08-22 13:21:24 +05:30
Christian Rädel 2745a8f6a0 Removed a line about inherited I/O with ProcessBuilder. 2016-08-18 04:21:06 +02:00
Christian Rädel e3fa46a9c7 Added Java Process unit test 2016-08-18 01:47:23 +02:00
eugenp ce0fb89076 2 new simple conversion tests 2016-08-08 22:58:26 +03:00
Alex Theedom 5a305a25ae Minor changes following review 2016-08-02 19:37:55 +01:00
ishwardas 25a1b10010 Delete CollectionsJoinAndSplitJUnitTest.java 2016-08-02 09:38:57 -05:00
ishwardas ac01869846 Update ArraysJoinAndSplitJUnitTest.java 2016-08-02 09:26:58 -05:00
ishwardas 88c360a336 Update ArraysJoinAndSplitJUnitTest.java 2016-08-02 09:23:53 -05:00
ishwardas 77c84e9e79 removed comments 2016-08-02 09:01:47 -05:00
ishwardas a1a43e64ea removed comments 2016-08-02 09:01:02 -05:00
maverick bf1c98fd16 First Commit for Sorting Examples. 2016-07-28 16:40:34 +05:30
govinda-radhe 026e5debf1 Java - Join and Split Arrays and Collections 2016-07-25 15:00:28 -07:00
Grzegorz Piwowarek 57ca431415 Add list assertions example 2016-07-16 10:51:50 +03:00
eugenp 3c17c9ef4a minor cleanup 2016-06-23 01:04:21 +03:00
Alex Theedom 8d6526c62e Some minor changes to code logic and style 2016-06-09 22:25:41 +01:00
Gachchinamat c8121c168d Core java enum examples 2016-05-30 16:42:22 +02:00
eugenp 29deacf3b9 minor cleanup work 2016-04-25 22:46:36 +03:00
DOHA d575f443bc minor fix 2016-04-08 12:06:09 +02:00
eugenp e7dd890661 removing sandbox, maven upgrades, eclipse cleanup 2016-03-06 11:37:48 +02:00
DOHA ffd0759d5a inputStream guava improvement 2015-12-10 14:09:06 +02:00
eugenp 7944711495 new java conversion 2015-09-11 15:57:45 +03:00
eugenp a1e7be16b8 formatting cleanup 2015-07-23 16:54:23 +03:00
eugenp fc6fd3e0a1 test added for java conversion 2015-05-25 13:56:22 +01:00
DOHA 2cb4c2d44e add charset examples 2015-03-09 13:59:19 +02:00
eugenp f4758569a7 adding alternative to remove nulls for list 2015-01-01 15:00:28 +02:00
eugenp 983823dbfa cleanup work 2014-12-28 14:35:48 +02:00
DOHA 8ce12f911c Move Class JavaFolderSizeTest 2014-11-20 10:47:23 +02:00
DOHA 1e9b741c4f Merge remote-tracking branch 'upstream/master' 2014-11-19 20:19:45 +02:00
DOHA 9e6b1fe5d7 add class JavaFolderSizeTest 2014-11-19 20:18:28 +02:00
eugenp 92def6eeae minor naming change 2014-11-16 01:07:30 +02:00
eugenp d5f3c84444 minor formatting cleanup 2014-11-15 15:39:28 +02:00
DOHA ac6db7c31f add class JavaScannerTest 2014-11-14 21:11:12 +02:00
eugenp ba38b2af4f timer and timertask examples 2014-11-02 12:25:35 +02:00
eugenp 1c5796c83c java tests cleanup work 2014-11-02 01:19:58 +02:00
eugenp 1020ce2389 cleanup work 2014-11-01 23:07:12 +02:00
DOHA 218030388f Modify class JavaWriteToFileTest 2014-10-21 18:11:58 +02:00
DOHA becf8c0266 Modify JavaReadFromFileTest 2014-10-21 14:20:29 +02:00
eugenp 12b5d784e0 cleanup work 2014-10-21 12:42:40 +03:00
DOHA 357c71a96a Change input file extension
Change input file extension from .txt to .in
2014-10-06 09:28:15 +02:00
DOHA ac8b5e38ae Modify JavaReadFromFileTest 2014-10-06 02:11:34 +02:00
eugenp 00b5f89e87 minor cleanup in java tests 2014-10-05 17:27:27 +03:00
Eugen a95196192e Merge pull request #48 from Doha2012/master
add TestReader to test Read from file
2014-10-03 00:31:30 +03:00
DOHA d1bc7d22cc add TestReader to test Read from file 2014-10-02 22:09:36 +02:00
eugenp 2a5d5481fc java io work 2014-10-01 20:30:17 +03:00
eugenp 3fd347537c small testing modification in core java 2014-09-30 20:53:33 +03:00
DOHA b55ba8410f resolve conflict in TestWriter 2014-09-30 13:47:02 +02:00
DOHA 2bdfde7795 change test files location 2014-09-30 01:46:29 +02:00
eugenp 426af12200 testing work for writing to fiule 2014-09-30 01:47:23 +03:00
eugenp 0e3c0f36df cleanup work 2014-09-30 01:42:55 +03:00
Eugen 851d7c0ecf Merge pull request #46 from Doha2012/master
Add few methods
2014-09-29 16:20:43 +03:00
DOHA 3737584740 Add few methods 2014-09-29 15:15:49 +02:00
Eugen f6a25f3eb5 Merge pull request #45 from Doha2012/master
Modify test methods
2014-09-29 08:50:58 +03:00
DOHA a06fead42f Modify test methods 2014-09-29 01:12:17 +02:00
Eugen b8102b975f Merge pull request #44 from Doha2012/master
Modify TestWriter
2014-09-28 22:32:22 +03:00
DOHA 800cf141cf Modify TestWriter
Adding some test methods
2014-09-28 17:04:53 +02:00
eugenp fa4240311d small persistence fixes 2014-09-28 15:16:46 +03:00
DOHA f32730e8a3 Add TestWriter
TestWriter contain methods used in Article Java - Write to file
2014-09-28 09:39:26 +02:00
eugenp 2080f93e39 minor sandbox test for unfinished samples 2014-09-25 12:08:40 +03:00
eugenp 6e10b7d2d2 minor generated file 2014-09-18 17:38:05 +03:00
eugenp 7400fdff98 cleanup work 2014-09-18 17:33:26 +03:00
eugenp 1e36d212d1 spring updates 2014-09-15 14:26:17 +03:00
eugenp 7da44d2140 minor java testign work 2014-09-15 00:53:34 +03:00
eugenp add603644a java io testing work 2014-08-05 22:52:31 +03:00
eugenp cbd92a85b6 cleanup IO work 2014-08-05 14:29:37 +03:00
eugenp c1e7dc0d33 java testing work 2014-08-05 11:43:48 +03:00
eugenp 5aa9389a19 minor testing work 2014-08-05 09:50:16 +03:00
eugenp 04f7919eb3 java random examples 2014-07-21 22:08:24 +03:00
eugenp 0d5c627ebc testing work in core java 2014-07-19 21:33:42 +03:00
eugenp 979cd6e3a4 IO testing work 2014-07-13 21:29:13 +03:00
eugenp 6c52dfacbd io testign work 2014-07-12 21:43:03 +03:00
eugenp 092b3213ea cleanup work in tests 2014-07-12 11:55:08 +03:00
eugenp 8228e34dc0 minor doc change 2014-07-09 23:42:47 +03:00
eugenp bc29b044dc java testing work 2014-07-09 23:41:36 +03:00
eugenp 8b17941edb java testing work 2014-07-09 17:29:52 +03:00
eugenp 8438a27f6f minor testing work 2014-07-09 13:08:16 +03:00
eugenp 0a76200ab4 work on java io tests 2014-07-06 11:37:59 +03:00
eugenp a4c585e489 IO work 2014-06-28 16:06:47 +03:00
eugenp 0c7f708028 IO work 2014-06-25 12:54:06 +03:00
eugenp a48a53ad57 early testing work 2014-06-25 01:05:20 +03:00
eugenp df3b2605e3 file conversion work 2014-06-21 18:31:20 +03:00
eugenp 7e5f20e166 conversion work 2014-06-21 12:48:47 +03:00
eugenp d8a7a0b70c java conversion work 2014-06-21 11:49:21 +03:00
eugenp 59cd8a8baf cleanup work and starting new tests 2014-06-19 21:19:14 +03:00
eugenp 89d3f72333 minor cleanup 2014-06-16 16:51:19 +03:00
eugenp 0e97dc8605 quick cleanup work 2014-06-11 12:39:01 +03:00
eugenp 9c3ff77d8f minor java testing work 2014-06-10 17:08:29 +03:00
eugenp 8f7f048ed4 collection conversion work 2014-06-02 20:56:17 +02:00
eugenp 423d49fcd3 new conversions 2014-06-02 20:36:09 +02:00
eugenp 2819b3137c simple collections conversion work 2014-06-01 00:31:40 +03:00
eugenp d06f8f87b2 conversion simple testing work 2014-05-31 17:56:15 +03:00
eugenp da60bb960e simple java conversion logic 2014-05-31 00:30:37 +03:00
eugenp 52600ea3ab added InputStream to String examples 2014-01-17 15:16:42 +02:00
eugenp 0f9fef5337 minor jaackson example and new streaming logic for large files 2014-01-15 19:53:33 +02:00
eugenp 36d843329e io testing work 2014-01-07 12:28:09 +02:00
eugenp faefaa5088 java IO testing work 2014-01-07 11:33:39 +02:00
eugenp 458db43570 maven added dependency and IO work 2014-01-06 21:35:23 +02:00
eugenp fcf3e693f5 upgrading all xsds to spring 4 2013-12-31 19:12:12 +02:00
eugenp a4a6fcf569 mostly doc and minor cleanup work 2013-12-26 22:08:32 +02:00
eugenp cfafcc57b7 cleanup work 2013-12-26 19:52:19 +02:00
eugenp 62fd8f8978 minor java collections work 2013-12-24 16:59:03 +02:00
eugenp 22ebf4a218 collections work 2013-12-24 16:46:15 +02:00
eugenp d9b9c30aa2 general cleanup and initial new project 2013-12-24 15:11:18 +02:00