Skip to content

Commit

Permalink
feat: Added personalized Provider Test and .json file for lesson_09 (…
Browse files Browse the repository at this point in the history
…Joseph Caballero)
  • Loading branch information
Josephcabs committed Oct 14, 2024
1 parent ff75e98 commit e73a5c4
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
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);
}
}
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"
}
]

0 comments on commit e73a5c4

Please sign in to comment.