Examples of BehaviorEntry


Examples of cuchaz.enigma.mapping.BehaviorEntry

  @Test
  @SuppressWarnings( "unchecked" )
  public void defaultConstructable( )
  {
    BehaviorEntry source = new ConstructorEntry( m_defaultClass, "()V" );
    assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder(
      newBehaviorReferenceByMethod( source, m_callerClass.getName(), "g", "()V" )
    ) );
  }
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

  }
 
  @Test
  public void baseDefaultReferences( )
  {
    BehaviorEntry source = newConstructor( "none/a", "()V" );
    assertThat(
      getReferenceTokens( newBehaviorReferenceByMethod( source, "none/b", "a", "()V" ) ),
      containsInAnyOrder( "a" )
    );
    assertThat(
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

  }
 
  @Test
  public void baseIntReferences( )
  {
    BehaviorEntry source = newConstructor( "none/a", "(I)V" );
    assertThat(
      getReferenceTokens( newBehaviorReferenceByMethod( source, "none/b", "b", "()V" ) ),
      containsInAnyOrder( "a" )
    );
  }
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

  }

  @Test
  public void subDefaultReferences( )
  {
    BehaviorEntry source = newConstructor( "none/d", "()V" );
    assertThat(
      getReferenceTokens( newBehaviorReferenceByMethod( source, "none/b", "c", "()V" ) ),
      containsInAnyOrder( "d" )
    );
    assertThat(
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

  }

  @Test
  public void subIntReferences( )
  {
    BehaviorEntry source = newConstructor( "none/d", "(I)V" );
    assertThat(
      getReferenceTokens( newBehaviorReferenceByMethod( source, "none/b", "d", "()V" ) ),
      containsInAnyOrder( "d" )
    );
    assertThat(
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

  }

  @Test
  public void subIntIntReferences( )
  {
    BehaviorEntry source = newConstructor( "none/d", "(II)V" );
    assertThat(
      getReferenceTokens( newBehaviorReferenceByMethod( source, "none/b", "e", "()V" ) ),
      containsInAnyOrder( "d" )
    );
  }
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

  }

  @Test
  public void subsubIntReferences( )
  {
    BehaviorEntry source = newConstructor( "none/e", "(I)V" );
    assertThat(
      getReferenceTokens( newBehaviorReferenceByMethod( source, "none/b", "f", "()V" ) ),
      containsInAnyOrder( "e" )
    );
  }
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

  }

  @Test
  public void defaultConstructableReferences( )
  {
    BehaviorEntry source = newConstructor( "none/c", "()V" );
    assertThat(
      getReferenceTokens( newBehaviorReferenceByMethod( source, "none/b", "g", "()V" ) ),
      containsInAnyOrder( "c" )
    );
  }
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

    }
   
    // check methods
    for( MethodMapping methodMapping : Lists.newArrayList( classMapping.methods() ) )
    {
      BehaviorEntry obfBehaviorEntry = BehaviorEntryFactory.createObf( classEntry, methodMapping );
      if( !m_jarIndex.containsObfBehavior( obfBehaviorEntry ) )
      {
        System.err.println( "WARNING: unable to find behavior " + obfBehaviorEntry + ". dropping mapping." );
        classMapping.removeMethodMapping( methodMapping );
     
View Full Code Here

Examples of cuchaz.enigma.mapping.BehaviorEntry

 
  @Test
  @SuppressWarnings( "unchecked" )
  public void behaviorReferences( )
  {
    BehaviorEntry source;
    Collection<EntryReference<BehaviorEntry,BehaviorEntry>> references;
   
    // baseClass constructor
    source = new ConstructorEntry( m_baseClass, "(Ljava/lang/String;)V" );
    references = m_index.getBehaviorReferences( source );
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.