Package cuchaz.enigma.analysis

Examples of cuchaz.enigma.analysis.TranslationIndex


  }
 
  @Test
  public void translationIndex( )
  {
    TranslationIndex index = m_index.getTranslationIndex();
   
    // base class
    assertThat( index.getSuperclassName( m_baseClass.getName() ), is( nullValue() ) );
    assertThat( index.getAncestry( m_baseClass.getName() ), is( empty() ) );
    assertThat( index.getSubclassNames( m_baseClass.getName() ), containsInAnyOrder(
      m_subClassA.getName(),
      m_subClassB.getName()
    ) );
   
    // subclass a
    assertThat( index.getSuperclassName( m_subClassA.getName() ), is( m_baseClass.getName() ) );
    assertThat( index.getAncestry( m_subClassA.getName() ), contains( m_baseClass.getName() ) );
    assertThat( index.getSubclassNames( m_subClassA.getName() ), contains( m_subClassAA.getName() ) );
   
    // subclass aa
    assertThat( index.getSuperclassName( m_subClassAA.getName() ), is( m_subClassA.getName() ) );
    assertThat( index.getAncestry( m_subClassAA.getName() ), contains(
      m_subClassA.getName(),
      m_baseClass.getName()
    ) );
    assertThat( index.getSubclassNames( m_subClassAA.getName() ), is( empty() ) );
   
    // subclass b
    assertThat( index.getSuperclassName( m_subClassB.getName() ), is( m_baseClass.getName() ) );
    assertThat( index.getAncestry( m_subClassB.getName() ), contains( m_baseClass.getName() ) );
    assertThat( index.getSubclassNames( m_subClassB.getName() ), is( empty() ) );
  }
View Full Code Here

TOP

Related Classes of cuchaz.enigma.analysis.TranslationIndex

Copyright © 2018 www.massapicom. 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.