This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
main/java/ru/sbtqa/tag/datajack/excel
test/java/ru/sbtqa/tag/datajack/excel
json-provider/src/test/java/ru/sbtqa/tag/datajack/providers/json
main/java/ru/sbtqa/tag/datajack/mongo
test/java/ru/sbtqa/tag/datajack/mongo
properties-provider/src/test/java/ru/sbtqa/tag/datajack/providers/properties Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 <modelVersion >4.0.0</modelVersion >
55 <groupId >ru.sbtqa.tag.datajack</groupId >
66 <artifactId >datajack-parent</artifactId >
7- <version >1.3 -SNAPSHOT</version >
7+ <version >5.0 -SNAPSHOT</version >
88 <packaging >pom</packaging >
99 <name >datajack</name >
1010 <description >Data management library</description >
Original file line number Diff line number Diff line change 1- package ru .sbtqa .tag .datajack .providers ;
1+ package ru .sbtqa .tag .datajack .excel ;
22
33import com .mongodb .BasicDBObject ;
44import org .apache .commons .io .FileUtils ;
1515import org .slf4j .Logger ;
1616import org .slf4j .LoggerFactory ;
1717import ru .sbtqa .tag .datajack .exceptions .*;
18+ import ru .sbtqa .tag .datajack .providers .AbstractDataProvider ;
1819
1920import java .io .File ;
2021import java .io .IOException ;
Original file line number Diff line number Diff line change 1- package ru .sbtqa .tag .datajack .providers ;
1+ package ru .sbtqa .tag .datajack .excel ;
22
33import com .mongodb .BasicDBObject ;
44import org .junit .Before ;
77import org .junit .rules .ExpectedException ;
88import ru .sbtqa .tag .datajack .TestDataProvider ;
99import ru .sbtqa .tag .datajack .callback .SampleDataGensCallback ;
10+ import ru .sbtqa .tag .datajack .excel .ExcelDataProvider ;
1011import ru .sbtqa .tag .datajack .exceptions .CyclicReferencesException ;
1112import ru .sbtqa .tag .datajack .exceptions .DataException ;
1213import ru .sbtqa .tag .datajack .exceptions .FieldNotFoundException ;
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ public void getByPathArrayTest() throws DataException {
137137 String value = testDataProvider .getByPath ("$Tests{array[0]}" ).getValue ();
138138 String valueArrayObject = testDataProvider .getByPath ("${array[1].b}" ).getValue ();
139139
140- assertEquals (value , "a" );
141- assertEquals (valueArrayObject , "1" );
140+ assertEquals ("a" , value );
141+ assertEquals ("1" , valueArrayObject );
142142 assertEquals (testDataProvider .get ("array" ).toString (), testDataProvider .getByPath ("$Tests{array}" ).toString ());
143143 }
144144
Original file line number Diff line number Diff line change 1- package ru .sbtqa .tag .datajack .providers ;
1+ package ru .sbtqa .tag .datajack .mongo ;
22
33import com .mongodb .*;
44import org .bson .BSONObject ;
55import org .bson .types .ObjectId ;
66import ru .sbtqa .tag .datajack .exceptions .*;
7+ import ru .sbtqa .tag .datajack .providers .AbstractDataProvider ;
78
89public class MongoDataProvider extends AbstractDataProvider {
910
Original file line number Diff line number Diff line change 1- package ru .sbtqa .tag .datajack .providers ;
1+ package ru .sbtqa .tag .datajack .mongo ;
22
33import com .github .fakemongo .junit .FongoRule ;
44import com .mongodb .DB ;
1111import ru .sbtqa .tag .datajack .TestDataProvider ;
1212import ru .sbtqa .tag .datajack .callback .SampleDataGensCallback ;
1313import ru .sbtqa .tag .datajack .exceptions .*;
14+ import ru .sbtqa .tag .datajack .mongo .MongoDataProvider ;
1415
1516import java .io .IOException ;
1617import java .util .Map ;
Original file line number Diff line number Diff line change @@ -142,8 +142,8 @@ public void getByPathArrayTest() throws DataException {
142142 String value = testDataProvider .getByPath ("$Tests{array[0]}" ).getValue ();
143143 String valueArrayObject = testDataProvider .getByPath ("${array[1].b}" ).getValue ();
144144
145- assertEquals (value , "a" );
146- assertEquals (valueArrayObject , "1" );
145+ assertEquals ("a" , value );
146+ assertEquals ("1" , valueArrayObject );
147147 assertEquals (testDataProvider .get ("array" ).toString (), testDataProvider .getByPath ("$Tests{array}" ).toString ());
148148 }
149149
You can’t perform that action at this time.
0 commit comments