ElasticsearchIntegrationTest无法解析为类型

时间:2016-04-13 01:43:41

标签: testing elasticsearch

我正在尝试编写集成测试,但是我得到了" ElasticsearchIntegrationTest无法解析为类型":

double total_pay = 0;
while ((file.hasNextLine()) && (count < worker_ar.length)) {
    String fName = file.next();
    String lName = file.next();
    int hours = file.nextInt();
    double hrly_pay = file.nextDouble();
    worker_ar[count] = new Worker(fName, lName, hours, hrly_pay);
    total_pay += worker_ar[count].computePay(); // <-- add this worker's
                                                //     pay to the total.
    count++;
}
double avg_pay = total_pay / count; // <-- calculate the average when 
                                    //     there is a total.

依赖关系如下所示:

public class MyTest extends ElasticsearchIntegrationTest {

@Test
public void test() {
    ...
}

}

0 个答案:

没有答案