forked from code-differently/code-differently-24-q4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds Chigazo Graham Lesson 09 Data Provider (code-differently#329)
* feat: created chigazograham.json file * feat: added ChigazoGrahamProvider.java file with data provider coded within; --------- Co-authored-by: “A1-4U2T1NN” <“[email protected]”>
- Loading branch information
1 parent
d38a9dc
commit fae9353
Showing
2 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
lesson_09/types/types_app/src/main/resources/data/ChigazoGrahamProvider.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,26 @@ | ||
package data; | ||
|
||
import java.util.Map; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
import com.codedifferently.lesson9.dataprovider.DataProvider; | ||
|
||
@Service | ||
public class ChigazoGrahamProvider extends DataProvider { | ||
public String getProviderName() { | ||
return "chigazograham"; | ||
} | ||
|
||
public Map<String, Class> getColumnTypeByName() { | ||
return Map.of( | ||
"column1",String.class, | ||
"column2",Boolean.class, | ||
"column3", Long.class, | ||
"column4", Float.class, | ||
"column5", Double.class, | ||
"column6", Short.class, | ||
"column7", Integer.class); | ||
} | ||
} | ||
|
92 changes: 92 additions & 0 deletions
92
lesson_09/types/types_app/src/main/resources/data/chigazograham.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": "ms1wuglcnp", | ||
"column2": "true", | ||
"column3": "6463003749233522688", | ||
"column4": "2.7921879E38", | ||
"column5": "8.442422875678673E307", | ||
"column6": "4743", | ||
"column7": "1270272283" | ||
}, | ||
{ | ||
"column1": "7awo0gh", | ||
"column2": "false", | ||
"column3": "7752118028902647808", | ||
"column4": "2.6698281E38", | ||
"column5": "5.605056226818231E307", | ||
"column6": "23516", | ||
"column7": "1704066280" | ||
}, | ||
{ | ||
"column1": "cserf78x02", | ||
"column2": "false", | ||
"column3": "2540472457630355968", | ||
"column4": "1.5396288E38", | ||
"column5": "1.50417665803363E308", | ||
"column6": "14580", | ||
"column7": "2114160244" | ||
}, | ||
{ | ||
"column1": "zgqnjh5", | ||
"column2": "false", | ||
"column3": "953741867660372224", | ||
"column4": "2.2381432E38", | ||
"column5": "2.493477176095576E307", | ||
"column6": "26539", | ||
"column7": "996751379" | ||
}, | ||
{ | ||
"column1": "s5iqo80h3c", | ||
"column2": "false", | ||
"column3": "5714943984670955520", | ||
"column4": "1.932927E38", | ||
"column5": "1.705202914715676E308", | ||
"column6": "7442", | ||
"column7": "1112427416" | ||
}, | ||
{ | ||
"column1": "wcuo0zxejh", | ||
"column2": "false", | ||
"column3": "2704740152448495104", | ||
"column4": "1.0179288E38", | ||
"column5": "1.393686380125556E308", | ||
"column6": "32762", | ||
"column7": "1881329776" | ||
}, | ||
{ | ||
"column1": "cnq9kjd6hiu", | ||
"column2": "true", | ||
"column3": "6206221245541992448", | ||
"column4": "1.3631897E38", | ||
"column5": "1.2956738103127734E308", | ||
"column6": "30578", | ||
"column7": "1147532001" | ||
}, | ||
{ | ||
"column1": "8z0bnd", | ||
"column2": "false", | ||
"column3": "4562348053081931776", | ||
"column4": "1.4620677E38", | ||
"column5": "2.044622864892074E307", | ||
"column6": "17197", | ||
"column7": "1094615070" | ||
}, | ||
{ | ||
"column1": "0vl9htqrw", | ||
"column2": "false", | ||
"column3": "6077936030977995776", | ||
"column4": "1.7550462E38", | ||
"column5": "4.752956293100593E307", | ||
"column6": "12867", | ||
"column7": "724629435" | ||
}, | ||
{ | ||
"column1": "6ur49", | ||
"column2": "true", | ||
"column3": "1339556241029906688", | ||
"column4": "1.944709E38", | ||
"column5": "9.16514287771922E307", | ||
"column6": "20363", | ||
"column7": "562533284" | ||
} | ||
] |