Examples of replacementClassDef()


Examples of net.sf.joafip.store.entity.conversion.ReplacementDefMap.replacementClassDef()

    /**/"0.0.2;b;;0.0.4;c;;" };
    final ReplacementDefMap replacementDefMap =
    /**/new ReplacementDefMap();
    replacementDefSetSetup(replacementDefMap, convertionDefArray);
    final ClassInfo classForA = classInfoFactory.getClassInfo("a");
    final Deque<ClassReplacementDef> replacementDef = replacementDefMap
        .replacementClassDef(version0, Version.releaseId("0.0.5"),
            classForA);
    assertNotNull("must have a definition", replacementDef);// NOPMD
    assertEquals("bad number of replacement def", 2, replacementDef.size());// NOPMD
    final Iterator<ClassReplacementDef> iterator = replacementDef
View Full Code Here

Examples of net.sf.joafip.store.entity.conversion.ReplacementDefMap.replacementClassDef()

    final ReplacementDefMap replacementDefMap =
    /**/new ReplacementDefMap();
    replacementDefMap.add(conversionDefEntry);

    final Deque<ClassReplacementDef> replacementDef = replacementDefMap
        .replacementClassDef(version0, version1, classInfoForA);
    assertNotNull("must have a definition", replacementDef);

    assertEquals("bad number of replacement def", 1, replacementDef.size());
    final Iterator<ClassReplacementDef> iterator = replacementDef
View Full Code Here

Examples of net.sf.joafip.store.entity.conversion.ReplacementDefMap.replacementClassDef()

    conversionDefEntry.addToFieldList(fieldInfo);

    replacementDefMap.add(conversionDefEntry);

    // check class "0"
    Deque<ClassReplacementDef> replacementDef = replacementDefMap
        .replacementClassDef(version0, version1, classInfoFor0);
    assertNotNull("must have a definition", replacementDef);
    assertEquals("bad number of replacement def", 1, replacementDef.size());
    Iterator<ClassReplacementDef> iterator = replacementDef.iterator();
    ClassReplacementDef classReplacementDef = iterator.next();
View Full Code Here

Examples of net.sf.joafip.store.entity.conversion.ReplacementDefMap.replacementClassDef()

        .getStaticFieldConversionMap().isEmpty());
    assertTrue("must not have replacement def", classReplacementDef
        .getFieldConversionMap().isEmpty());

    // check class "a"
    replacementDef = replacementDefMap.replacementClassDef(version0,
        version1, classInfoForA);
    assertNotNull("must have a definition", replacementDef);

    assertEquals("bad number of replacement def", 1, replacementDef.size());
    iterator = replacementDef.iterator();
View Full Code Here

Examples of net.sf.joafip.store.entity.conversion.ReplacementDefMap.replacementClassDef()

    final ClassInfo classInfoForB = classInfoFactory.getClassInfo("b");
    conversionDefEntry = new ConversionDefEntry(classInfoForA, version0,
        classInfoForB, version1, ClassInfo.NULL, ClassInfo.NULL);
    replacementDefMap.add(conversionDefEntry);

    final Deque<ClassReplacementDef> replacementDef = replacementDefMap
        .replacementClassDef(version0, version1, classInfoForA);
    assertNotNull("must have a definition", replacementDef);
    assertEquals("bad number of replacement def", 1, replacementDef.size());
    final Iterator<ClassReplacementDef> iterator = replacementDef
        .iterator();
View Full Code Here

Examples of net.sf.joafip.store.entity.conversion.ReplacementDefMap.replacementClassDef()

    conversionDefEntry = new ConversionDefEntry(classInfoForA, version0,
        version1);
    conversionDefEntry.addToFieldList(fieldInfo);
    replacementDefMap.add(conversionDefEntry);

    final Deque<ClassReplacementDef> replacementDef = replacementDefMap
        .replacementClassDef(version1, Version.releaseId("0.0.2"),
            classInfoForA);
    assertTrue("must not have replacement def", replacementDef.isEmpty());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.