Package mockit

Class TestedClassInjectedFromMockParametersTest

java.lang.Object
mockit.TestedClassInjectedFromMockParametersTest

public final class TestedClassInjectedFromMockParametersTest extends Object
The Class TestedClassInjectedFromMockParametersTest.
  • Constructor Details

    • TestedClassInjectedFromMockParametersTest

      public TestedClassInjectedFromMockParametersTest()
  • Method Details

    • attemptToInstantiateTestedClassWithNoInjectables

      public void attemptToInstantiateTestedClassWithNoInjectables()
      Attempt to instantiate tested class with no injectables.
    • instantiateTestedObjectFromMockParametersUsingOneConstructor

      public void instantiateTestedObjectFromMockParametersUsingOneConstructor(String s, int mock1, boolean mock2, char c1, char c2)
      Instantiate tested object from mock parameters using one constructor.
      Parameters:
      s - the s
      mock1 - the mock 1
      mock2 - the mock 2
      c1 - the c 1
      c2 - the c 2
    • instantiateTestedObjectFromMockParametersUsingAnotherConstructor

      public void instantiateTestedObjectFromMockParametersUsingAnotherConstructor(boolean b1, boolean b3, byte b2)
      Instantiate tested object from mock parameters using another constructor.
      Parameters:
      b1 - the b 1
      b3 - the b 3
      b2 - the b 2
    • instantiateTestedObjectUsingConstructorWithMultipleParametersOfTheSameTypeMatchedByName

      public void instantiateTestedObjectUsingConstructorWithMultipleParametersOfTheSameTypeMatchedByName(char second, char third, char first)
      Instantiate tested object using constructor with multiple parameters of the same type matched by name.
      Parameters:
      second - the second
      third - the third
      first - the first
    • setEnumFieldInTestedObjectFromValueProvidedInParameter

      public void setEnumFieldInTestedObjectFromValueProvidedInParameter(boolean flag, mockit.TestedClassInjectedFromMockParametersTest.AnEnum enumVal)
      Sets the enum field in tested object from value provided in parameter.
      Parameters:
      flag - the flag
      enumVal - the enum val