Skip to content

Commit

Permalink
feat: adds Jada White date provider (#174)
Browse files Browse the repository at this point in the history
* feat: adds Jada White date provider

* feat: adds Randy lesson05 response (#172)

* feat: added provider and .json

* feat: added answers

* chore: cleaned up comments

* chore: fixed format

* feat: Adds Chukwuma Ibezim.json and ChukwumaIbezimProvider.java (#171)

* feat: adds Jamira's lesson 05 response (#170)

-added Data Provider and JSON file

* feat: adds Nataya's completed java test (#169)

* feat(dataprovider): adds reponse to lesson 05 for Kevin (#167)

- added data provier and json file

Closes: #123

* chore: adds Kenrick's lesson 05 response (#173)

* fix:  changed package name

* chore: added jada's white data provider

---------

Co-authored-by: RandyCastr0 <160950862+RandyCastr0@users.noreply.github.com>
Co-authored-by: cibezim <123107253+cibezim@users.noreply.github.com>
Co-authored-by: CD-Jamira <160950455+CD-Jamira@users.noreply.github.com>
Co-authored-by: NatayaP <160752534+NatayaP@users.noreply.github.com>
Co-authored-by: kjknows <160962634+kjknows@users.noreply.github.com>
Co-authored-by: Kenrixkk22 <160765704+Kenrixkk22@users.noreply.github.com>
  • Loading branch information
7 people committed Mar 11, 2024
1 parent 47deb68 commit 7056a1f
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.codedifferently.lesson5.dataprovider;

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

@Service
public class JadaWProvider extends DataProvider {
public String getProviderName() {
return "jadawhite";
}

public Map<String, Class> getColumnTypeByName() {
return Map.of(
"column1", Integer.class,
"column2", String.class,
"column3", Float.class,
"column4", Boolean.class,
"column5", Double.class,
"column6", BigInteger.class,
"column7", Long.class);
}
}
92 changes: 92 additions & 0 deletions lesson_05/types/types_app/src/main/resources/data/jadawhite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"column1": "13594",
"column2": "87akwibl",
"column3": "2.6514103E38",
"column4": "true",
"column5": "3.6289239337144897E307",
"column6": "4331553029305096192",
"column7": "1800547428"
},
{
"column1": "31199",
"column2": "9gv4tx573ze",
"column3": "1.9721944E38",
"column4": "false",
"column5": "3.2582899465723264E307",
"column6": "6512433968621693952",
"column7": "1708663691"
},
{
"column1": "8365",
"column2": "eoujlr14f",
"column3": "1.357929E38",
"column4": "false",
"column5": "1.26365086934264E307",
"column6": "6660835381290615808",
"column7": "8941424"
},
{
"column1": "27014",
"column2": "kgndst7pzr0",
"column3": "1.8536376E38",
"column4": "true",
"column5": "1.5757873359593245E307",
"column6": "5666435768182602752",
"column7": "80363498"
},
{
"column1": "30275",
"column2": "7vajz4geudk",
"column3": "1.361265E38",
"column4": "true",
"column5": "1.0436214111203435E308",
"column6": "3135014471222723584",
"column7": "356819593"
},
{
"column1": "13851",
"column2": "h7gqak5u4xob",
"column3": "3.570789E37",
"column4": "true",
"column5": "5.151999703025675E307",
"column6": "8591115454011298816",
"column7": "1087678233"
},
{
"column1": "18608",
"column2": "u3w28q",
"column3": "1.3930895E38",
"column4": "true",
"column5": "9.489750856753978E307",
"column6": "8875654232151241728",
"column7": "771613350"
},
{
"column1": "18439",
"column2": "m5w1sr",
"column3": "2.8875823E38",
"column4": "false",
"column5": "1.5232136303296598E308",
"column6": "2414630673340645888",
"column7": "2141672985"
},
{
"column1": "13607",
"column2": "h0iel2bo6v",
"column3": "2.5881393E38",
"column4": "true",
"column5": "1.4219673468826384E307",
"column6": "7788676449067502592",
"column7": "337534417"
},
{
"column1": "947",
"column2": "73c4vfrk",
"column3": "2.2756022E38",
"column4": "false",
"column5": "8.51277473895515E307",
"column6": "4165443793703469568",
"column7": "1521111382"
}
]

0 comments on commit 7056a1f

Please sign in to comment.