本文整理汇总了Java中umm3601.digitalDisplayGarden.PlantController类的典型用法代码示例。如果您正苦于以下问题:Java PlantController类的具体用法?Java PlantController怎么用?Java PlantController使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PlantController类属于umm3601.digitalDisplayGarden包,在下文中一共展示了PlantController类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: populateDB
import umm3601.digitalDisplayGarden.PlantController; //导入依赖的package包/类
@Before
public void populateDB() throws IOException {
PopulateMockDatabase db = new PopulateMockDatabase();
db.clearAndPopulateDBAgain();
plantController = new PlantController(databaseName);
plantController.postData("second uploadId");
// plantController.setLiveUploadId(uploadId);
}
开发者ID:UMM-CSci-3601-S17,项目名称:digital-display-garden-iteration-3-sixguysburgers-fries,代码行数:10,代码来源:UnorganizedTests.java
示例2: clearAndPopulateDatabase
import umm3601.digitalDisplayGarden.PlantController; //导入依赖的package包/类
@Before
public void clearAndPopulateDatabase() throws IOException{
mongoClient.dropDatabase(databaseName);
fromFile = this.getClass().getResourceAsStream("/AccessionList2016.xlsx");
parser = new ExcelParser(fromFile, databaseName);
try {
String id = "160210";
parser.parseExcel(id);
} catch (FileNotFoundException e) {
System.err.println("Something wrong when importing excel in sorting test");
}
plantController = new PlantController(databaseName);
}
开发者ID:UMM-CSci-3601-S17,项目名称:digital-display-garden-iteration-4-dorfner-v2,代码行数:16,代码来源:TestSorting.java
示例3: populateDB
import umm3601.digitalDisplayGarden.PlantController; //导入依赖的package包/类
@Before
public void populateDB() throws IOException {
PopulateMockDatabase db = new PopulateMockDatabase();
db.clearAndPopulateDBAgain();
plantController = new PlantController(databaseName);
mongoClient = new MongoClient();
currentDB = mongoClient.getDatabase(databaseName);
plants = currentDB.getCollection("plants");
}
开发者ID:UMM-CSci-3601-S17,项目名称:digital-display-garden-iteration-4-dorfner-v2,代码行数:10,代码来源:TestFeedbackForPlantByPlantID.java
示例4: populateDB
import umm3601.digitalDisplayGarden.PlantController; //导入依赖的package包/类
@Before
public void populateDB() throws IOException {
PopulateMockDatabase.clearAndPopulateDBAgain(testDB);
plantController = new PlantController(testDB);
}
开发者ID:UMM-CSci-3601-S17,项目名称:digital-display-garden-iteration-4-revolverenguardia-1,代码行数:6,代码来源:TestGetFeedbackCounts.java
示例5: populateDB
import umm3601.digitalDisplayGarden.PlantController; //导入依赖的package包/类
@Before
public void populateDB() throws IOException {
PopulateMockDatabase db = new PopulateMockDatabase();
db.clearAndPopulateDBAgain(testDB);
plantController = new PlantController(testDB);
}
开发者ID:UMM-CSci-3601-S17,项目名称:digital-display-garden-iteration-4-revolverenguardia-1,代码行数:7,代码来源:TestUploadIdMethods.java
示例6: populateDB
import umm3601.digitalDisplayGarden.PlantController; //导入依赖的package包/类
@Before
public void populateDB() throws IOException {
PopulateMockDatabase.clearAndPopulateDBAgain(testDB);
plantController = new PlantController(testDB);
bedController = new BedController(testDB);
}
开发者ID:UMM-CSci-3601-S17,项目名称:digital-display-garden-iteration-4-revolverenguardia-1,代码行数:7,代码来源:TestGetBedMetadataForBubbleMap.java
示例7: populateDB
import umm3601.digitalDisplayGarden.PlantController; //导入依赖的package包/类
@Before
public void populateDB() throws IOException {
PopulateMockDatabase db = new PopulateMockDatabase();
db.clearAndPopulateDBAgain();
plantController = new PlantController(databaseName);
}
开发者ID:UMM-CSci-3601-S17,项目名称:digital-display-garden-iteration-3-sixguysburgers-fries,代码行数:7,代码来源:TestPlantComment.java