Skip to content

Commit 180dddb

Browse files
authored
Queue reader (#884)
tolldemo work
1 parent c2c5ee5 commit 180dddb

File tree

44 files changed

+617
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+617
-63
lines changed

tolldemo/data-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.2.4</version>
8+
<version>3.2.5</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>

tolldemo/data-generator/src/main/java/com/example/datagenerator/DataGeneratorApplication.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2024, Oracle and/or its affiliates.
2+
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3+
14
package com.example.datagenerator;
25

36
import java.io.BufferedReader;
@@ -6,7 +9,7 @@
69
import java.io.FileWriter;
710
import java.io.IOException;
811
import java.util.ArrayList;
9-
import java.util.List;
12+
// import java.util.List;
1013
import java.util.Random;
1114
import java.util.UUID;
1215

tolldemo/data-generator/src/main/java/com/example/datagenerator/State.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2024, Oracle and/or its affiliates.
2+
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3+
14
package com.example.datagenerator;
25

36
import java.util.Random;

tolldemo/data-generator/src/main/resources/application.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spring:
2+
application:
3+
name: data-generator

tolldemo/data-generator/src/main/resources/nj-zipcodes-placenames.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
08210 Cape May Court House
117117
08212 Cape May Point
118118
07072 Carlstadt
119-
08069 Carney's Point
119+
08069 Carneys Point
120120
07008 Carteret
121121
08018 Cedar Brook
122122
07009 Cedar Grove
@@ -828,7 +828,7 @@
828828
07512 Totowa
829829
07082 Towaco
830830
07052 Town Center
831-
08243 Townsend's Inlet
831+
08243 Townsends Inlet
832832
07879 Tranquility
833833
08600 Trenton
834834
08601 Trenton

tolldemo/data-generator/src/main/resources/street-names.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Moorgate Street
3333
Hollytree Gardens
3434
Goldings Road
3535
Highmoor Close
36-
St James's Road
36+
St James Road
3737
Yardley Close
3838
St Leonards Avenue
3939
Althorp Road

tolldemo/data-generator/src/test/java/com/example/datagenerator/DataGeneratorApplicationTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2024, Oracle and/or its affiliates.
2+
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3+
14
package com.example.datagenerator;
25

36
import org.junit.jupiter.api.Test;

tolldemo/journal-app/src/main/java/com/example/journalapp/JournalAppApplication.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2024, Oracle and/or its affiliates.
2+
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3+
14
package com.example.journalapp;
25

36
import org.springframework.boot.SpringApplication;
@@ -9,5 +12,4 @@ public class JournalAppApplication {
912
public static void main(String[] args) {
1013
SpringApplication.run(JournalAppApplication.class, args);
1114
}
12-
1315
}

tolldemo/journal-app/src/main/java/com/example/journalapp/controller/JournalController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
// Copyright (c) 2024, Oracle and/or its affiliates.
2+
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3+
14
package com.example.journalapp.controller;
25

36
import com.example.journalapp.model.Journal;
4-
//import com.example.journalapp.model.JournalJDBC;
57
import com.example.journalapp.repository.JournalRepository;
6-
//import com.example.journalapp.service.JournalService;
78
import lombok.extern.slf4j.Slf4j;
89
import org.springframework.http.HttpStatus;
910
import org.springframework.http.ResponseEntity;
@@ -26,7 +27,7 @@ public JournalController(JournalRepository journalRepository) {
2627
this.journalRepository = journalRepository;
2728
}
2829

29-
// http POST :8080/api/v1/journal tagId=tagid licensePlate=licplate vehicleType=vtype tollDate=tdate
30+
// http POST :8080/api/v1/journal tagId=tagid accountNumber=acctnum licensePlate=licplate vehicleType=vtype tollDate=tdate tollCost=1
3031
@PostMapping("/journal")
3132
public ResponseEntity<Journal> createAccount(@RequestBody Journal journal) {
3233
log.info("Creating journal {}", journal);

0 commit comments

Comments
 (0)