Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.MetaPackage


        }
    */
    @Test
    public void givenUnknownPackageNameIsUsedWithPackageManager_WhenPackageIsBuilt_ThenEmptyMetaPackage() {
        // Given
        MetaPackage expectedPackage = new MetaPackage(S_EMPTY);

        // When
        PackageManager packageManager = new PackageManager();
        MetaPackage actualPackage = packageManager.buildPackage(S_EMPTY);

        // Then
        assertThat(actualPackage, is(equalTo(expectedPackage)));
    }
View Full Code Here


            Then the appropriate root packages are returned
    */
    @Test
    public void givenKnownPackageNameIsUsedWithPackageManager_WhenPackageIsBuiltAndRootPackagesAreRequested_ThenRootPackagesAreReturned() {
        // Given
        List<MetaPackage> expectedRootPackages = Arrays.asList(new MetaPackage("com"));

        // When
        PackageManager packageManager = new PackageManager();
        packageManager.buildPackage("com.sun.java");
        List<MetaPackage> actualRootPackages = packageManager.getRootPackages();
View Full Code Here

  @Test
  public void testNonASCIIMethod() throws NoSuchMethodException, SecurityException
  {
    String thisClassName = getClass().getName();

    MetaPackage metaPackage = new MetaPackage(StringUtil.getPackageName(thisClassName));

    MetaClass metaClass = new MetaClass(metaPackage, StringUtil.makeUnqualified(thisClassName));

    String testMethodName = "unicodeMethodNameµµµµµ";
View Full Code Here

      @Override
      public IMetaMember findMemberWithSignature(String logSignature)
      {
        Method objToStringMethod = UnitTestUtil.getMethod("java.lang.Object", "toString", new Class[0]);

        MetaPackage fakePackage = new MetaPackage("java.lang");

        MetaClass fakeClass = new MetaClass(fakePackage, "java.lang.Object");

        IMetaMember fakeMember = new MetaMethod(objToStringMethod, fakeClass);
View Full Code Here

    @Test
    public void testGetMemberFromSignature1() throws NoSuchMethodException, SecurityException
    {
      String thisClassName = getClass().getName();
     
      MetaPackage metaPackage = new MetaPackage(StringUtil.getPackageName(thisClassName));
     
      MetaClass metaClass = new MetaClass(metaPackage, StringUtil.makeUnqualified(thisClassName));
     
      String testMethodName = "primitiveReturnPrimitiveParam";
     
View Full Code Here

    @Test
    public void testGetMemberFromSignature2() throws NoSuchMethodException, SecurityException
    {
      String thisClassName = getClass().getName();
     
      MetaPackage metaPackage = new MetaPackage(StringUtil.getPackageName(thisClassName));
     
      MetaClass metaClass = new MetaClass(metaPackage, StringUtil.makeUnqualified(thisClassName));
     
      String testMethodName = "voidReturnPrimitiveParam";
     
View Full Code Here

    @Test
    public void testGetMemberFromSignature3() throws NoSuchMethodException, SecurityException
    {
      String thisClassName = getClass().getName();
     
      MetaPackage metaPackage = new MetaPackage(StringUtil.getPackageName(thisClassName));
     
      MetaClass metaClass = new MetaClass(metaPackage, StringUtil.makeUnqualified(thisClassName));
     
      String testMethodName = "voidReturnNoParams";
     
View Full Code Here

    @Test
    public void testGetMemberFromSignature4() throws NoSuchMethodException, SecurityException
    {
      String thisClassName = getClass().getName();
     
      MetaPackage metaPackage = new MetaPackage(StringUtil.getPackageName(thisClassName));
     
      MetaClass metaClass = new MetaClass(metaPackage, StringUtil.makeUnqualified(thisClassName));
     
      String testMethodName = "objectReturnObjectParam";
     
View Full Code Here

    @Test
    public void testGetMemberFromSignature5() throws NoSuchMethodException, SecurityException
    {
      String thisClassName = getClass().getName();
     
      MetaPackage metaPackage = new MetaPackage(StringUtil.getPackageName(thisClassName));
     
      MetaClass metaClass = new MetaClass(metaPackage, StringUtil.makeUnqualified(thisClassName));
     
      String testMethodName = "arrayReturnArrayParam";
     
View Full Code Here

    @Test
    public void testGetMemberFromSignature6() throws NoSuchMethodException, SecurityException
    {
      String thisClassName = getClass().getName();
     
      MetaPackage metaPackage = new MetaPackage(StringUtil.getPackageName(thisClassName));
     
      MetaClass metaClass = new MetaClass(metaPackage, StringUtil.makeUnqualified(thisClassName));
     
      String testMethodName = "<init>";
     
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.model.MetaPackage

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.