-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added personalized Provider Test and .json file for lesson_09 (…
…Joseph Caballero)
- Loading branch information
1 parent
ff75e98
commit e73a5c4
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...s_app/src/main/java/com/codedifferently/lesson9/dataprovider/JosephCaballeroProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.codedifferently.lesson9.dataprovider; | ||
|
||
import java.util.Map; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class JosephCaballeroProvider extends DataProvider { | ||
public String getProviderName() { | ||
return "josephcaballero"; | ||
} | ||
|
||
public Map<String, Class> getColumnTypeByName() { | ||
return Map.of( | ||
"column1", Boolean.class, | ||
"column2", Integer.class, | ||
"column3", Short.class, | ||
"column4", Long.class, | ||
"column5", Double.class, | ||
"column6", String.class, | ||
"column7", Float.class); | ||
} | ||
} |
92 changes: 92 additions & 0 deletions
92
lesson_09/types/types_app/src/main/resources/data/josephcaballero.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
[ | ||
{ | ||
"column1": "true", | ||
"column2": "1501623001", | ||
"column3": "29178", | ||
"column4": "4054847949948608000", | ||
"column5": "6.669281923068417E307", | ||
"column6": "lh2a9odezp", | ||
"column7": "2.3134554E38" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "195489494", | ||
"column3": "32212", | ||
"column4": "297078145000927488", | ||
"column5": "1.7948085166566553E308", | ||
"column6": "kbc9svlx", | ||
"column7": "1.0028535E38" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "2137364048", | ||
"column3": "11515", | ||
"column4": "6603840930630240256", | ||
"column5": "1.2107073349746985E307", | ||
"column6": "ailm9zd7ofjp", | ||
"column7": "2.1177069E38" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "774189298", | ||
"column3": "28599", | ||
"column4": "4408873690302931968", | ||
"column5": "1.7261582942535305E308", | ||
"column6": "igmrb5qen4", | ||
"column7": "4.0967755E37" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "238859049", | ||
"column3": "10663", | ||
"column4": "2252316583191301632", | ||
"column5": "6.675573068061114E307", | ||
"column6": "t26o8e", | ||
"column7": "6.563976E37" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "1138479514", | ||
"column3": "7728", | ||
"column4": "2398392417865177600", | ||
"column5": "5.575239099797806E307", | ||
"column6": "5j7xlzows", | ||
"column7": "2.0506938E38" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "849901460", | ||
"column3": "10188", | ||
"column4": "9199364428831389696", | ||
"column5": "1.3241986933410274E308", | ||
"column6": "sdwjou06", | ||
"column7": "2.2919867E38" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "851642772", | ||
"column3": "17747", | ||
"column4": "3285780666222104576", | ||
"column5": "3.201261361717812E306", | ||
"column6": "ljrk8q9a4m2d", | ||
"column7": "7.8076035E37" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "97818772", | ||
"column3": "10506", | ||
"column4": "4548348181505634816", | ||
"column5": "5.313581264873486E307", | ||
"column6": "8glfo3a74dv", | ||
"column7": "7.4407673E37" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "1223799245", | ||
"column3": "9226", | ||
"column4": "4223954943662728192", | ||
"column5": "1.422040803436844E308", | ||
"column6": "c047bq", | ||
"column7": "2.8849188E38" | ||
} | ||
] |