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


Java Ignore类代码示例

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


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

示例1: writeSampleFiles

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void writeSampleFiles() throws IOException {
    final float[] vod = Utils.getExampleData();

    try (FileOutputStream fos = new FileOutputStream(createFile("unconditioned-floats"))) {
        writeUnconditioned(vod, fos);
    }

    try (FileOutputStream fos = new FileOutputStream(createFile("conditioned-floats"))) {
        Conditioner.writeFloat(vod, fos);
    }

    try (FileOutputStream fos = new FileOutputStream(createFile("unconditioned-doubles"))) {
        writeUnconditioned(Utils.floatsToDoubles(vod), fos);
    }

    try (FileOutputStream fos = new FileOutputStream(createFile("conditioned-doubles"))) {
        Conditioner.writeDouble(Utils.floatsToDoubles(vod), fos);
    }
}
 
开发者ID:batterseapower,项目名称:timeseries-compression,代码行数:22,代码来源:ConditionerTest.java

示例2: run

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Test
public void run() {

    WebAuthClient webAuthClient = new WebAuthClient("https://yourserver/webauth/user", logger);

    try {
        webAuthClient.authenticate("99-YTd1bnUxcTlxZW1hcA==", "");
    } catch (Exception e) {
        e.printStackTrace();
    }

}
 
开发者ID:zapotek6,项目名称:activemq-webauth-plugin,代码行数:14,代码来源:WebAuthClientUnitTest.java

示例3: testAllocateTime

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Test @Ignore
public void testAllocateTime() {
    int pageSize = 1024 * 1024 * 10;
    int allocTimes = 20480;
    int size = 4096;
    DirectByteBufferPool pool = new DirectByteBufferPool(pageSize, (short) 256, (short) 8);
    ByteBuffer[] byteBuffer = new ByteBuffer[allocTimes];
    long start = System.currentTimeMillis();
    for (int i = 0; i < allocTimes; i++) {
        byteBuffer[i] = pool.allocate(size);
    }
    long used = (System.currentTimeMillis() - start);
    System.out.println("total used time  " + used + " avg speed " + allocTimes / used);
}
 
开发者ID:actiontech,项目名称:dble,代码行数:15,代码来源:TestDirectByteBufferPool.java

示例4: testIsDocumentBelongedToThisUserWhenAuthenticationSucceds

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
public void testIsDocumentBelongedToThisUserWhenAuthenticationSucceds() {
    ClinicalDocumentDto clinicalDocumentDto = mock(ClinicalDocumentDto.class);
    ClinicalDocumentDto patientsClinicalDocumentDto = mock(ClinicalDocumentDto.class);
    Patient patient = mock(Patient.class);
    List<ClinicalDocumentDto> clinicaldocumentDtos = Arrays
            .asList(patientsClinicalDocumentDto);
    doReturn("1").when(clinicalDocumentDto).getId();
    doReturn("1").when(patientsClinicalDocumentDto).getId();
    doReturn(patient).when(patientRepository).findByUsername("Owner");
    doReturn(clinicaldocumentDtos).when(sut).findDtoByPatient(patient);
    assertTrue(sut.isDocumentBelongsToThisUser("Owner", clinicalDocumentDto));
}
 
开发者ID:bhits,项目名称:pcm-api,代码行数:14,代码来源:ClinicalDocumentServiceImplTest.java

示例5: testIsDocumentBelongedToThisUserWhenAuthenticationFailed

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
public void testIsDocumentBelongedToThisUserWhenAuthenticationFailed() {
    ClinicalDocumentDto clinicalDocumentDto = mock(ClinicalDocumentDto.class);
    ClinicalDocumentDto patientsClinicalDocumentDto = mock(ClinicalDocumentDto.class);
    Patient patient = mock(Patient.class);
    List<ClinicalDocumentDto> clinicaldocumentDtos = Arrays
            .asList(patientsClinicalDocumentDto);
    doReturn("1").when(clinicalDocumentDto).getId();
    doReturn("2").when(patientsClinicalDocumentDto).getId();
    doReturn(patient).when(patientRepository).findByUsername("Owner");
    doReturn(clinicaldocumentDtos).when(sut).findDtoByPatient(patient);
    assertFalse(sut.isDocumentBelongsToThisUser("Owner", clinicalDocumentDto));
}
 
开发者ID:bhits,项目名称:pcm-api,代码行数:14,代码来源:ClinicalDocumentServiceImplTest.java

示例6: isBalanced

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
/**
 * WRONG
 *
 * @param root
 * @return
 */
@Ignore
public boolean isBalanced(TreeNode root) {
    if (root == null) return true;
    if (root.left == null && root.right == null) return true;
    if (root.left != null && root.right == null) {
        return root.left.left == null && root.left.right == null;
    }
    if (root.left == null && root.right != null) {
        return root.right.left == null && root.right.right == null;
    }

    return isBalanced(root.left) && isBalanced(root.right);
}
 
开发者ID:FrankBian,项目名称:Java-Utils-Collection,代码行数:20,代码来源:Solution110.java

示例7: assertEquals

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Test
public void
very_big_tree_test() throws URISyntaxException, IOException {
   assertEquals(1074,
     TreeParser.parseTree(Paths.get(ClassLoader.getSystemResource("VeryBigTree.txt").toURI())).computeMaxSum());
}
 
开发者ID:murex,项目名称:murex-coding-dojo,代码行数:8,代码来源:PathSumTest.java

示例8: test100Tournaments

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
public void test100Tournaments() {
    List<Person> persons = getPersons();
    for (int i = 0; i < 100; i++) {
        testFullTournament(persons);
        System.out.println("round: "  + i);
    }
}
 
开发者ID:olemartin,项目名称:chess-tournament,代码行数:9,代码来源:ServiceIntegrationTest.java

示例9: testMakePersistentReadOnly

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
// @Test
public void testMakePersistentReadOnly() {

  String gewichtungsString = "11,10,09,08,07,06,05,04,03,02,01"; // Unrealistisch, aber gut zu prüfen
  //    Kombinationsberechnung kombinationsberechnung = Kombinationsberechnung.getInstance();
  //    kombinationsberechnung.setHatAbsteigendeIntervallinformationen(true);
  AesthetischeGewichtung testGewichtung = new AesthetischeGewichtung(gewichtungsString, new Kombinationsberechnung());

  Ton basisTon = new Ton(Oktavlage.GROSZE, Name.C);
  Ton ton1 = Tonumfang.getTon(Oktavlage.GROSZE, Name.C);
  //    ton1.setAbstandBasisTonDurchAbstandZumEingestrichenenC(basisTon);
  ton1.setId(10);
  Ton ton2 = Tonumfang.getTon(Oktavlage.GROSZE, Name.G);
  //    ton2.setAbstandBasisTonDurchAbstandZumEingestrichenenC(basisTon);
  ton2.setId(20);
  Ton ton3 = Tonumfang.getTon(Oktavlage.KLEINE, Name.D);
  //    ton3.setAbstandBasisTonDurchAbstandZumEingestrichenenC(basisTon);
  ton3.setId(30);
  List<Ton> tonList = new ArrayList<Ton>();
  tonList.add(ton1);
  tonList.add(ton2);
  tonList.add(ton3);
  Akkord testAkkord = new Akkord();
  testAkkord.setTonList(tonList);
  assertNotNull(akkordDao);
  List<Akkord> chords = (List<Akkord>) akkordDao.findAll();
  assertTrue("Akkord mit der genannten Id sollte noch nicht vorhanden sein.", null == chords);
  testAkkord.setId(Integer.valueOf(103));
  testAkkord.setAnzahlToene(3);
  //    testAkkord.setKlangschaerfe(AkkordkombinationenBerechnungServiceHelper.getKlangschaerfe(tonList, testGewichtung));
  //    testAkkord.set
  akkordDao.makePersistentReadOnly(testAkkord, this.entityManager);
  entityManager.unwrap(org.hibernate.Session.class).flush();
  assertFalse(entityManager.unwrap(org.hibernate.Session.class).isDirty());
  testAkkord.setBasisAkkordId(2);
  akkordDao.save(testAkkord);
  entityManager.unwrap(org.hibernate.Session.class).flush();
  assertFalse("Trotz Aenderung (auszer bei der Id) sollte Hibernate das Entity-Objekt vom Dirty-Checking ausgeschlossen haben.",
    entityManager.unwrap(org.hibernate.Session.class).isDirty());
}
 
开发者ID:karstengresch,项目名称:chordelia,代码行数:42,代码来源:AkkordDaoTest.java

示例10: copyDir

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Test @Ignore
public void copyDir() {
	String source = "e:\\download\\_testaa";
	String target = "\\\\NAS\\emul\\image\\Apple2\\_testaa";
	FileUtil.copy( source, target, true );
}
 
开发者ID:NyBatis,项目名称:NyBatisCore,代码行数:7,代码来源:FileUtilTest.java

示例11: testDelete

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void testDelete() {
}
 
开发者ID:EMN-FILA2-2015,项目名称:telosys-tools-saas-back,代码行数:5,代码来源:ProjectServiceImplTest.java

示例12: testCancelBeforeConversion

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Test
@Ignore
public void testCancelBeforeConversion() throws ExecutionException, InterruptedException {
    // completable futures can not be canceled
}
 
开发者ID:lukas-krecan,项目名称:future-converter,代码行数:6,代码来源:ToListenableFutureConverterTest.java

示例13: shouldValidateRailwaysOperatingSinceDateAsPastDate

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Test
public void shouldValidateRailwaysOperatingSinceDateAsPastDate() {}
 
开发者ID:CarloMicieli,项目名称:trenako-v2,代码行数:4,代码来源:RailwayValidationTests.java

示例14: shouldValidateRailwaysOperatingUntilDateAsPastDate

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Test
public void shouldValidateRailwaysOperatingUntilDateAsPastDate() {}
 
开发者ID:CarloMicieli,项目名称:trenako-v2,代码行数:4,代码来源:RailwayValidationTests.java

示例15: testDeleteNode

import jdk.nashorn.internal.ir.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Test
public void testDeleteNode() throws Exception {

    /*
                   6
             3           9
          1     5     7     10
            2 4         8
     */

    TreeNode rootNode = new TreeNode(6);
    TreeNode node1 = new TreeNode(3);
    TreeNode node2 = new TreeNode(9);
    TreeNode node3 = new TreeNode(1);
    TreeNode node4 = new TreeNode(5);
    TreeNode node5 = new TreeNode(7);
    TreeNode node6 = new TreeNode(10);
    TreeNode node7 = new TreeNode(2);
    TreeNode node8 = new TreeNode(4);
    TreeNode node9 = new TreeNode(8);

    rootNode.setLeft(node1);
    rootNode.setRight(node2);
    node1.setParent(rootNode);
    node2.setParent(rootNode);

    node1.setLeft(node3);
    node1.setRight(node4);
    node3.setParent(node1);
    node4.setParent(node1);

    node2.setLeft(node5);
    node2.setRight(node6);
    node5.setParent(node2);
    node6.setParent(node2);

    node3.setRight(node7);
    node7.setParent(node3);

    node4.setLeft(node8);
    node8.setParent(node4);

    node5.setRight(node9);
    node9.setParent(node5);

    BSTNodeDeletion nodeDeletion = new BSTNodeDeletion();
    TreeNode newRootNode = nodeDeletion.deleteNode(rootNode, node1);

    //InOrderTraversal.inOrder(newRootNode);

}
 
开发者ID:anuragkapur,项目名称:algorithmic-programming,代码行数:53,代码来源:BSTNodeDeletionTest.java


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