Merge pull request #6896 from amit2103/BAEL-14251

[BAEL-14251] - Make sure the tutorials build doesn't generate any un-…
This commit is contained in:
Loredana Crusoveanu 2019-05-05 11:52:11 +03:00 committed by GitHub
commit 974e5a1806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 3 deletions

1
.gitignore vendored
View File

@ -77,3 +77,4 @@ apache-avro/src/main/java/com/baeldung/avro/model/
jta/transaction-logs/ jta/transaction-logs/
software-security/sql-injection-samples/derby.log software-security/sql-injection-samples/derby.log
spring-soap/src/main/java/com/baeldung/springsoap/gen/ spring-soap/src/main/java/com/baeldung/springsoap/gen/
/report-*.json

1
core-groovy/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/src/main/resources/ioSerializedObject.txt

View File

@ -34,7 +34,9 @@ class DataAndObjectsUnitTest {
@Test @Test
void whenUsingWithObjectOutputStream_thenObjectIsSerializedToFile() { void whenUsingWithObjectOutputStream_thenObjectIsSerializedToFile() {
Task task = new Task(description:'Take out the trash', startDate:new Date(), status:0) Task task = new Task(description:'Take out the trash', startDate:new Date(), status:0)
new File('src/main/resources/ioSerializedObject.txt').withObjectOutputStream { out -> def serializedDataFile = new File('src/main/resources/ioSerializedObject.txt')
serializedDataFile.createNewFile()
serializedDataFile.withObjectOutputStream { out ->
out.writeObject(task) out.writeObject(task)
} }

View File

@ -11,3 +11,6 @@
*.jar *.jar
*.war *.war
*.ear *.ear
# Files
/src/main/resources/orderOutput.yaml

View File

@ -0,0 +1 @@
/report-*.json