Skip to content

Commit

Permalink
feat: completed java test
Browse files Browse the repository at this point in the history
  • Loading branch information
NatayaP committed Mar 11, 2024
1 parent 606fe1f commit 5a695a3
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.lesson5.dataprovider;

import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class NatayaProvider extends DataProvider {
public String getProviderName() {
return "NatayaPrice";
}

public Map<String, Class> getColumnTypeByName() {
return Map.of(
"column1", Float.class,
"column2", Boolean.class,
"column3", Double.class,
"column4", String.class,
"column5", Short.class,
"column6", Long.class,
"column7", Integer.class);
}
}
92 changes: 92 additions & 0 deletions lesson_05/types/types_app/src/main/resources/data/NatayaPrice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"column1": "2.4987383E38",
"column2": "true",
"column3": "2.8468488959135863E307",
"column4": "ejvysu2r",
"column5": "3492",
"column6": "3017999201846898176",
"column7": "1724022"
},
{
"column1": "3.2207077E38",
"column2": "true",
"column3": "5.427189841502087E307",
"column4": "6g93mewl",
"column5": "24542",
"column6": "5052621554535596032",
"column7": "1135324116"
},
{
"column1": "2.8304796E38",
"column2": "true",
"column3": "1.5804355524525308E307",
"column4": "crnbfgz",
"column5": "10299",
"column6": "5904326540120637440",
"column7": "335334455"
},
{
"column1": "2.1459398E38",
"column2": "true",
"column3": "1.6171009576017516E308",
"column4": "6j9cwdx",
"column5": "30072",
"column6": "5620429983290131456",
"column7": "1067498888"
},
{
"column1": "2.1836452E38",
"column2": "false",
"column3": "6.866447805175756E307",
"column4": "t69sldekzo",
"column5": "890",
"column6": "7077169670087494656",
"column7": "425645268"
},
{
"column1": "3.3286975E38",
"column2": "false",
"column3": "1.6368186101112028E308",
"column4": "tpy297f4g8",
"column5": "23016",
"column6": "7890473538528077824",
"column7": "1876005148"
},
{
"column1": "1.9527387E38",
"column2": "true",
"column3": "9.580785121351483E307",
"column4": "wh51pk89e34j",
"column5": "29551",
"column6": "235471687411541952",
"column7": "1416606501"
},
{
"column1": "1.837019E38",
"column2": "true",
"column3": "1.5662974524101187E308",
"column4": "sr0kxaqm4dce",
"column5": "29984",
"column6": "2385008129591441408",
"column7": "1337482567"
},
{
"column1": "4.6732462E36",
"column2": "false",
"column3": "8.61959904390606E306",
"column4": "gx73q",
"column5": "8957",
"column6": "6996348252180109312",
"column7": "1867180193"
},
{
"column1": "2.078812E38",
"column2": "false",
"column3": "1.1826227144361999E308",
"column4": "cn08oz2w14yr",
"column5": "691",
"column6": "358979493815446016",
"column7": "246301317"
}
]

0 comments on commit 5a695a3

Please sign in to comment.