TestCordapp.Companion
Keywords: net.corda.testing.node.TestCordapp.Companion class
Date: 2023-09-18

net.corda.testing.node

## Class TestCordapp.Companion

- net.corda.testing.node.TestCordapp.Companion

- Enclosing class:
    TestCordapp

      public static class TestCordapp.Companion

- - ### Method Detail

    - #### findCordapp

          @JvmStatic
           @NotNull
          public TestCordapp findCordapp(@NotNull
                                                              java.lang.String scanPackage)

      Scans the current classpath to find the CorDapp that contains the given package. All the CorDapp's metdata present in its MANIFEST are inherited. If more than one location containing the package is found then an exception is thrown. An exception is also thrown if no CorDapp is found.

      Parameters:
        `scanPackage` - The package name used to find the CorDapp. This does not need to be the root package of the CorDapp.