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


Java Ignore类代码示例

本文整理汇总了Java中org.junit.Ignore的典型用法代码示例。如果您正苦于以下问题:Java Ignore类的具体用法?Java Ignore怎么用?Java Ignore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Ignore类属于org.junit包,在下文中一共展示了Ignore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: test_performOperations_xml_success

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void test_performOperations_xml_success()
        throws PipelineException, ParserException {
    Mockito.when(xmlParser.parseFile(Mockito.anyString(),
            Mockito.anyMapOf(String.class, Object.class)))
            .thenReturn(new FileContents());

    Extract extracts = new Extract();
    extracts.setId("foo");
    extracts.setLocation("");
    extracts.setType(SupportedFileType.XML);

    UkubukaSchema ukubukaSchema = new UkubukaSchema();
    ukubukaSchema.setExtracts(Arrays.asList(extracts));

    ukubukaExtractor.performOperations(new HashMap<>(), ukubukaSchema);

    Mockito.verify(xmlParser, Mockito.times(1)).parseFile(
            Mockito.anyString(),
            Mockito.anyMapOf(String.class, Object.class));
}
 
开发者ID:ukubuka,项目名称:ukubuka-core,代码行数:23,代码来源:UkubukaExtractorTest.java

示例2: prepareData

import org.junit.Ignore; //导入依赖的package包/类
@Ignore("long stress test")
@Test // loads blocks from file and store them into disk DB
public void prepareData() throws URISyntaxException, IOException {
    URL dataURL = ClassLoader.getSystemResource("blockstore/big_data.dmp");

    File file = new File(dataURL.toURI());

    BufferedReader reader = new BufferedReader(new FileReader(file));
    String blockRLP;
    while(null != (blockRLP = reader.readLine())) {
        Block block = new Block(
                Hex.decode(blockRLP)
        );
        blockSource.put(block.getHash(), block);

        if (block.getNumber() % 10000 == 0)
            logger.info(
                    "adding block.hash: [{}] block.number: [{}]",
                    block.getShortHash(),
                    block.getNumber()
            );
    }
    logger.info("total blocks loaded: {}", blockSource.size());
}
 
开发者ID:rsksmart,项目名称:rskj,代码行数:25,代码来源:BlockStressTest.java

示例3: testExecuteReal

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void testExecuteReal() throws Exception {

    SearchConfiguration.set(SearchConfiguration.SERVER_HOST, "http://localhost:8983/solr/searchindex");

    SearchServer server = SearchServer.getInstance();

    FieldDescriptor<String> title = new FieldDescriptorBuilder()
            .setBoost(2)
            .setLanguage(Language.German).buildTextField("title");

    DocumentFactory factory = new DocumentFactoryBuilder("asset")
            .addField(title)
            .build();

    server.index(factory.createDoc("1").setValue(title, "Hello World"));
    server.commit();

    assertEquals(1, server.execute(Search.fulltext(), factory).getNumOfResults());
}
 
开发者ID:RBMHTechnology,项目名称:vind,代码行数:22,代码来源:SolrSearchServerTest.java

示例4: testSendMailStatus

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void testSendMailStatus() {
    String[] values = new String[] { "a", "b" };

    SendMailStatus<String> mailStatus = new SendMailStatus<String>();
    Assert.assertEquals(0, mailStatus.getMailStatus().size());

    mailStatus.addMailStatus(values[0]);
    Assert.assertEquals(1, mailStatus.getMailStatus().size());

    mailStatus.addMailStatus(values[1]);
    Assert.assertEquals(2, mailStatus.getMailStatus().size());

    for (int i = 0; i < mailStatus.getMailStatus().size(); i++) {
        SendMailStatus.SendMailStatusItem<String> ms = mailStatus
                .getMailStatus().get(i);
        Assert.assertEquals(values[i], ms.getInstance());
        Assert.assertNull(ms.getException());
        Assert.assertFalse(ms.errorOccurred());
    }
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:23,代码来源:CommunicationServiceBeanTest.java

示例5: testUnionDistinctDiffTypesAtPlanning

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore("changing schema")
public void testUnionDistinctDiffTypesAtPlanning() throws Exception {
  String query = "select count(c1) as ct from (select cast(r_regionkey as int) c1 from cp.`tpch/region.parquet`) \n" +
      "union \n" +
      "(select cast(r_regionkey as int) c2 from cp.`tpch/region.parquet`)";
  testBuilder()
      .sqlQuery(query)
      .unOrdered()
      .baselineColumns("ct")
      .baselineValues((long) 5)
      .baselineValues((long) 0)
      .baselineValues((long) 1)
      .baselineValues((long) 2)
      .baselineValues((long) 3)
      .baselineValues((long) 4)
      .build()
      .run();
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:20,代码来源:TestUnionDistinct.java

示例6: runPostString

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void runPostString() throws IOException {
    String postBody = ""
            + "Releases\n"
            + "--------\n"
            + "\n"
            + " * _1.0_ May 6, 2013\n"
            + " * _1.1_ June 15, 2013\n"
            + " * _1.2_ August 11, 2013\n";

    Request request = new Request.Builder()
            .url("https://localhost:8080/markdown")
            .post(RequestBody.create(MEDIA_TYPE_MARKDOWN, postBody))
            .build();

    Response response = client.newCall(request).execute();
    if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);

    System.out.println(response.body().string());
}
 
开发者ID:TFdream,项目名称:okurl,代码行数:22,代码来源:OkURLClientTest.java

示例7: testBuilder_MyList

import org.junit.Ignore; //导入依赖的package包/类
@Ignore
   @Test
   @SuppressWarnings({ "rawtypes", "unchecked" })
   public void testBuilder_MyList() throws Exception
{
       Builder<MyList> b1 = Builder.register(MyList.class);
	MyList list = new MyList();
	list.add(new boolean[]{ true,false });
	list.add(new int[]{ 1,2,3,4,5 });
	list.add("String");
	list.add(4);
	list.code = 4321;
	
	UnsafeByteArrayOutputStream os = new UnsafeByteArrayOutputStream();
	b1.writeTo(list, os);
	byte[] b = os.toByteArray();
	System.out.println(b.length+":"+Bytes.bytes2hex(b));
	MyList result = b1.parseFrom(b);

	assertEquals(4, result.size());
	assertEquals(result.code, 4321);
	assertEquals(result.id, "feedback");
}
 
开发者ID:dachengxi,项目名称:EatDubbo,代码行数:24,代码来源:BuilderTest.java

示例8: validateCurrentUrl_ValidUrl

import org.junit.Ignore; //导入依赖的package包/类
@Ignore
// FIXME : No!! This attempts a real connection! Furthermore the URL with
// port is
// hard-coded! Mock the connection - for real connection test create an
// integration test
// in the IT project!
@Test
public void validateCurrentUrl_ValidUrl() {
    // given
    brandBean.setBrandingUrl(WHITE_LABEL_PATH);

    // when
    brandBean.validateCurrentUrl();

    // then
    assertEquals(1, facesMessages.size());
    assertEquals(FacesMessage.SEVERITY_INFO, facesMessages.get(0)
            .getSeverity());
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:20,代码来源:BrandBeanTest.java

示例9: shortTest

import org.junit.Ignore; //导入依赖的package包/类
/**
 * Short Test, will be replaced later.
 * 
 * @throws TrainModelsFailedException if the training operation failed
 * @throws PredictionFailedException if the prediction operation failed
 */
@Test
@Ignore
public void shortTest() throws TrainModelsFailedException, PredictionFailedException {
   CollaborativeFilteringDataset trainingData = (CollaborativeFilteringDataset) createDatasetOutOfFile(
         new CollaborativeFilteringParser(), getTestRessourcePathFor(MOVIELENS_DATASET_PATH));

   MatrixFactorizationConfiguration config = new MatrixFactorizationConfiguration();
   config.setStepSize(0.0001);
   MatrixFactorizationLearningAlgorithm algo = new MatrixFactorizationLearningAlgorithm();
   MatrixFactorizationLearningModel model = algo.train(trainingData);
   Double result = model.predict(new CollaborativeFilteringInstance(1, 256, null, trainingData));
   logger.debug(PREDICTION + result);

   result = model.predict(new CollaborativeFilteringInstance(1, 0, null, trainingData));
   logger.debug(PREDICTION + result);
   logger.debug(model.toString());
}
 
开发者ID:Intelligent-Systems-Group,项目名称:jpl-framework,代码行数:24,代码来源:MatrixFactorizationLearningAlgorithmTest.java

示例10: test_3

import org.junit.Ignore; //导入依赖的package包/类
@Ignore //TODO #POC9
@Test // rlp decode
public void test_3() {

    //   LogInfo{address=f2b1a404bcb6112a0ff2c4197cb02f3de40018b3, topics=[5a360139cff27713da0fe18a2100048a7ce1b7700c953a82bc3ff011437c8c2a 588d7ddcc06c14843ea68e690dfd4ec91ba09a8ada15c5b7fa6fead9c8befe4b ], data=}
    byte[] rlp = Hex.decode("f85a94f2b1a404bcb6112a0ff2c4197cb02f3de40018b3f842a05a360139cff27713da0fe18a2100048a7ce1b7700c953a82bc3ff011437c8c2aa0588d7ddcc06c14843ea68e690dfd4ec91ba09a8ada15c5b7fa6fead9c8befe4b80");
    LogInfo logInfo = new LogInfo(rlp);

    assertEquals("f2b1a404bcb6112a0ff2c4197cb02f3de40018b3",
            Hex.toHexString(logInfo.getAddress()));

    assertEquals("00800000000000000010000000000000000000000000002000000000000000000012000000100000000050000020000000000000000000000000000000000000",
            logInfo.getBloom().toString());

    assertEquals("f85a94f2b1a404bcb6112a0ff2c4197cb02f3de40018b3f842a05a360139cff27713da0fe18a2100048a7ce1b7700c953a82bc3ff011437c8c2aa0588d7ddcc06c14843ea68e690dfd4ec91ba09a8ada15c5b7fa6fead9c8befe4b80",
            Hex.toHexString(logInfo.getEncoded()));

    logger.info("{}", logInfo);
}
 
开发者ID:Aptoide,项目名称:AppCoins-ethereumj,代码行数:20,代码来源:LogInfoTest.java

示例11:

import org.junit.Ignore; //导入依赖的package包/类
/**
 * Servcie実行にGETを指定してXHR2ヘッダーのALLOW_ORIGINのみ返却されること.
 */
@Ignore
@Test
public final void Servcie実行にGETを指定してXHR2ヘッダーのALLOW_ORIGINのみ返却されること() {
    // TODO サービス実行が実装された後に対応すること
    try {
        // コレクションの作成
        createServiceCollection();

        TResponse response =
                Http.request("crossdomain/xhr2-preflight-no-access-control-allow-headers.txt")
                        .with("path", "/testcell1/box1/servicecol/service")
                        .with("token", PersoniumUnitConfig.getMasterToken())
                        .returns()
                        .statusCode(HttpStatus.SC_METHOD_NOT_ALLOWED)
                        .debug();
        checkXHR2HeaderOnlyOrigin(response);
    } finally {
        // コレクションの削除
        deleteServiceCollection();
    }
}
 
开发者ID:personium,项目名称:personium-core,代码行数:25,代码来源:CrossDomainTest.java

示例12: testBTreeForbidDups

import org.junit.Ignore; //导入依赖的package包/类
/**
 * Test that a BTree which forbid duplicate values does not accept them
 */
@Test(expected = DuplicateValueNotAllowedException.class)
@Ignore("this condition is removed")
public void testBTreeForbidDups() throws IOException, BTreeAlreadyManagedException
{
    BTree<Long, String> singleValueBtree = BTreeFactory.createInMemoryBTree( "test2", LongSerializer.INSTANCE,
        StringSerializer.INSTANCE, BTree.FORBID_DUPLICATES );

    for ( long i = 0; i < 64; i++ )
    {
        singleValueBtree.insert( i, Long.toString( i ) );
    }

    try
    {
        singleValueBtree.insert( 18L, "Duplicate" );
        fail();
    }
    finally
    {
        singleValueBtree.close();
    }
}
 
开发者ID:apache,项目名称:directory-mavibot,代码行数:26,代码来源:InMemoryBTreeDuplicateKeyTest.java

示例13: testJobDetails

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void testJobDetails() throws Exception {
  TestSpacesStoragePlugin.setup(getCurrentDremioDaemon());
  expectSuccess(getBuilder(getAPIv2().path("dataset/testA.dsA1/data").queryParam("limit", "10000")).buildGet(), JobDataFragment.class);
  List<Job> jobs = ImmutableList.copyOf(l(JobsService.class).getJobsForDataset(new DatasetPath("testA.dsA1").toNamespaceKey(), 100));
  JobDetailsUI jobDetails = expectSuccess(getBuilder(getAPIv2().path("job/" + jobs.get(0).getJobId().getId() + "/details")).buildGet(), JobDetailsUI.class);
  assertNotNull(jobDetails);
  assertNotNull(jobs);
  assertTrue(jobs.size() > 0);
  waitForCompleteJobInIndex(jobs.get(0).getJobId());
  jobDetails = expectSuccess(getBuilder(getAPIv2().path("job/" + jobs.get(0).getJobId().getId() + "/details")).buildGet(), JobDetailsUI.class);
  assertEquals(1, jobDetails.getTableDatasetProfiles().size());
  assertEquals(500, (long) jobDetails.getOutputRecords());
  assertEquals(9000, (long) jobDetails.getDataVolume());
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:17,代码来源:TestServerJobs.java

示例14: testgetViewForOneStepRange

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void testgetViewForOneStepRange() {
	MediatorSPARQLDerivation mediatorSPARQLDerivation = new MediatorSPARQLDerivation(
			C_ONTOLOGY_FURNITURE_TAXONOMY_V1_4_BIBA_OWL);
	LocalOntologyView helper = new LocalOntologyView();
	String translationLabel = "http://www.semanticweb.org/ontologies/2013/4/Ontology1367568797694.owl#translation";
	this.setLanguagelabel(translationLabel);
	
	Entity concept = new Entity();
	concept.setUrl(getURIOfConcept("HighChair"));
	String label = translateConcept(concept.getUrl(), Language.SPANISH, this.getLanguagelabel()).getTranslation();
	concept.setTranslatedURL(label);
	
	helper.setConcept(concept);
	LocalOntologyView result = mediatorSPARQLDerivation.getViewForOneStepRange(helper.getConcept().getUrl(), helper, null, Language.SPANISH);
	assertTrue(result.getDataproperties().size() > 0);
	System.out.println(result.getDataproperties());
	System.out.println(result.getObjectproperties());
}
 
开发者ID:nimble-platform,项目名称:catalog-search-service,代码行数:21,代码来源:MediatorSPARQLDerivationTest.java

示例15: testPartitionCTAS

import org.junit.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void testPartitionCTAS() throws  Exception {
  test("use dfs_test; " +
      "create table mytable1  partition by (r_regionkey, r_comment) as select r_regionkey, r_name, r_comment from cp.`tpch/region.parquet`");

  test("use dfs_test; " +
      "create table mytable2  partition by (r_regionkey, r_comment) as select * from cp.`tpch/region.parquet` where r_name = 'abc' ");

  test("use dfs_test; " +
      "create table mytable3  partition by (r_regionkey, n_nationkey) as " +
      "  select r.r_regionkey, r.r_name, n.n_nationkey, n.n_name from cp.`tpch/nation.parquet` n, cp.`tpch/region.parquet` r " +
      "  where n.n_regionkey = r.r_regionkey");

  test("use dfs_test; " +
      "create table mytable4  partition by (r_regionkey, r_comment) as " +
      "  select  r.* from cp.`tpch/nation.parquet` n, cp.`tpch/region.parquet` r " +
      "  where n.n_regionkey = r.r_regionkey");


}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:22,代码来源:TestExampleQueries.java


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