当前位置: 首页>>代码示例>>Java>>正文


Java PlantController类代码示例

本文整理汇总了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


注:本文中的umm3601.digitalDisplayGarden.PlantController类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。