Commit Graph

53 Commits

Author SHA1 Message Date
amit2103 cc1183cd83 [BAEL-12668] - Make sure the tutorials build doesn't generate any un-committed or un-ignored artifacts 2019-02-18 01:08:28 +05:30
PranayVJain 9a567f95b4 List files within directory
Issue: BAEL-2447
2019-01-26 23:21:13 -07:00
Eric Martin 36eac84ff9
Merge pull request #6158 from RajeshBhojwani/master
BAEL-2525 - Clear a text file without deleting in Java
2019-01-22 21:56:32 -06:00
Rajesh Bhojwani fc546758e7 Merge branch 'master' of https://github.com/RajeshBhojwani/tutorials 2019-01-21 08:17:56 +05:30
Rajesh Bhojwani 08b8c427bd rename file 2019-01-21 08:15:38 +05:30
Loredana Crusoveanu 3c7480d0ba
Merge pull request #6172 from FDPro/bael-2531
dupirefr/dupire.francois+pro@gmail.com [REORG-2531] Updated a test to illustrate use of File.separator
2019-01-20 10:00:29 +02:00
dupirefr e03c0871ae [REORG-2531] Updated a test to illustrate use of File.separator 2019-01-19 23:14:25 +01:00
Loredana Crusoveanu 8510b07a56
Update FilesClearDataManualTest.java 2019-01-17 23:27:50 +02:00
Erick Audet M.Sc af1636fe23 BAEL-2509
* New section in InputStream to byte array article and recreating branch.

* Minor typo

* Code reformat using intellij formatter.

* Code reformat using intellij formatter.

* guava implementation to be completed

* guava implementation

* Added assert to guava test

* Fix formatting

* Formatting using Baeldung format

* Based on Josh comments, I removed some code BAEL-2509

* Removed all references to File

* Update fork from upstream

* Update fork from upstream

* Merhe Upstream

* Remove all references to FileInputStream (Josh Comments)

* Delete CustomBaeldungQueueUnitTest.java
2019-01-17 10:21:30 -07:00
Rajesh Bhojwani 273c569b88 remove space 2019-01-17 15:20:25 +05:30
Rajesh Bhojwani e6e0c065d5 Added test file to demo the deletion of file content 2019-01-17 15:17:09 +05:30
Amy DeGregorio 0bfa50825b BAEL-2499 Write to CSV in Java - updated (#6135)
* example code for Article How to Write to a CSV File in Java

* Updated to use a Stream

* Updated to use Streams in convertToCSV for BAEL-2499
2019-01-15 21:31:37 +01:00
Loredana Crusoveanu f53c247946
Merge pull request #6119 from FDPro/master
dupirefr/dupire.francois+pro@gmail.com [BAEL-2531] Directories creation tests
2019-01-12 18:35:00 +02:00
Amy DeGregorio 583969b59d BAEL-2499 Write to CSV in Java - Updated PR (#6122)
* example code for Article How to Write to a CSV File in Java

* Updated to use a Stream
2019-01-11 19:28:10 +01:00
Erick Audet M.Sc c5415eecac BAEL-2059
* New section in InputStream to byte array article and recreating branch.

* Minor typo

* Code reformat using intellij formatter.

* Code reformat using intellij formatter.

* guava implementation to be completed

* guava implementation

* Added assert to guava test

* Fix formatting
2019-01-10 15:16:53 -07:00
dupirefr bb966c8e14 [BAEL-2531] Directories creation tests 2019-01-10 08:51:53 +01:00
Amy DeGregorio 128817cfeb example code for Article How to Write to a CSV File in Java (#6102) 2019-01-09 22:20:47 +02:00
amit2103 b4ff5c46f0 [BAEL-11402] - Moved articles out of core-java (part 3) 2018-12-30 01:19:12 +05:30
Loredana Crusoveanu 06d925e90d
Merge pull request #5621 from holgerl/patch-1
FileOutputStream is never closed
2018-12-15 18:13:47 +02:00
Marko Previsic 5a5c5c34b5 Guide to BufferedReader
Issue: BAEL-2255
2018-11-06 17:24:41 -07:00
Holger Ludvigsen 770b28f241
FileOutputStream is never closed
The output file stream is not closed, so it is still in use by the Java process after the code runs. I noticed this when trying to delete the output files right afterwards.
2018-11-05 15:39:11 +01:00
Eric Martin 2ac03eb218
Merge pull request #5524 from eugenp/Issue-5497
UnzipFile is vulnerable to Zip Slip #5497
2018-10-25 23:55:20 -05:00
eric-martin 917c64307a UnzipFile is vulnerable to Zip Slip #5497 2018-10-22 21:57:52 -05:00
Pranay jain daa1de25a2 BAEL-2236: Reading a CSV file into a array 2018-10-22 11:06:25 +05:30
Loredana Crusoveanu b3a6a60100 add txt files for zip 2018-10-13 19:15:02 +03:00
eric-martin e908b96eef BAEL-2257: Renamed OutputStreamExamplesTest to *UnitTest 2018-10-10 22:09:45 -05:00
eric-martin 26c9bdcc0d BAEL-2257: Renamed OutputStreamExamplesTest to *UnitTest 2018-10-10 20:23:32 -05:00
Kumar Chandrakant 11dd36cb1a Adding files for the article BAEL-2257: Guide to OutputStream (#5386) 2018-10-08 15:52:59 +02:00
Loredana Crusoveanu dcf5a40c3f remove import 2018-09-30 11:14:54 +03:00
Loredana Crusoveanu 8cff5212f9 update read file test 2018-09-30 11:13:35 +03:00
Loredana Crusoveanu 74a6d38d24 fix for zip empty dir 2018-09-22 21:09:23 +03:00
Loredana Crusoveanu c615ed9e34
Merge pull request #5284 from dkapil/task/BAEL-8958
BAEL-8958 Fix surefire configs of activejdbc, apache-shiro, asm, cas-…
2018-09-21 23:39:56 +03:00
Dhawal Kapil 400f2ce8dc BAEL-8958 Fix surefire configs of activejdbc, apache-shiro, asm, cas-secured-app, cas-server and core-java-io project
- Fixed surefire configs and general pom standardization
2018-09-18 06:45:23 +05:30
amit2103 f7b41ba79c [BAEL-8977] - Added junit to read file into string through IOUtils 2018-09-16 23:45:42 +05:30
Dhawal Kapil 3ff20c353e BAEL-8497 Update "File to InputStream" article
- Added new tests for data input stream and sequence input stream in JavaXToInputStreamUnitTest
- Added new test resource anothersample.txt
2018-08-27 14:07:09 +05:30
sachin fb0023286a BAEL-7674: Let's make sure our logging configuration has the same pattern 2018-08-21 18:22:53 -04:00
Dhawal Kapil 3b64d8ef4e BAEL-8219 Fix tests for core-java, maven and core-java-io projects
-Test fixes
2018-08-15 14:14:50 +05:30
José Carlos Valero Sánchez 42d8fabe6f
Merge pull request #4951 from RanjeetKaur17/develop.0.2.0
Moving File Parser Samples to core-java-io
2018-08-13 10:11:46 +02:00
RanjeetKaur17 43bfb9722f Moving File Parser Samples to core-java-io 2018-08-12 00:07:20 +04:00
Neeraj Yadav 0f1e1a49d9 BAEL-1936 Use of FilenameFilter (#4520)
* Added tests for FilenameFilter demo

-added a test to show FilenameFilter implementation
-added another test to show similar functionality using Predicate

* refactored code to get directory at a single location

* fixing formatting

* changed test class name to conform to custom rule

UnitTestNamingConventionRule lists the allowed test class names. Added ManualTest at the end to conform to the rule.
2018-07-31 22:58:48 +01:00
Loredana Crusoveanu 66f2263b98 add new is to string test 2018-07-09 23:40:29 +03:00
Timoteo Ponce 234107f519 BAEL-1933 Added code examples and unit tests for creating symbolic links (#4608)
* BAEL-1933 Added code examples and unit tests for creating symbolic links

* Fixed PMD violation on unit test naming

* Fixed review comments

* Applied baeldung-eclipse formatter settings
2018-07-05 21:02:31 +02:00
Grzegorz Piwowarek 8bba7874b0
Update JavaReadFromFileUnitTest.java (#4404) 2018-06-08 18:24:22 +02:00
Amit Pandey 2e683411e2 Bael 4461 2 (#4409)
* Deleted md file as a conflict

* [BAEL-4461] - Fixed PMD violation

* [BAEL-4461] - Fixed PMD violation

* [BAEL-4461] - Ignore empty TC

* Fix Spring 5 tests
2018-06-05 13:35:55 +02:00
Amit Pandey dfcc0cab05 Bael 6556 2 (#4365)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-6556] - Next set of testcase renamed
2018-05-29 22:14:19 +02:00
tamasradu c53a361ca0 BAEL-1646 (#4255)
* Adding code for BAEL-1646

* Adding integration tests for BAEL-1646

* Using equalsIgnoreCase to match hashes. Adding cleanup methods

* Corrected junit names
2018-05-22 18:43:13 +02:00
Eugen Paraschiv 14bf9a24d5 testing work 2018-03-04 17:29:04 +02:00
Eugen Paraschiv 7cc57756e1 testing work 2018-03-04 17:28:06 +02:00
Eugen Paraschiv 358f836ecf testing work 2018-03-04 17:22:02 +02:00
Eugen Paraschiv 535656eeb5 testing work 2018-03-04 17:17:57 +02:00