Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1421

The hook junit tests "testNewHookAntProject" will be failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: Wizards > Hook
    • Labels:
      None

      Description

      The hook junit tests will be failures.

      Create a test class be included below code:
      @Test
      public void testNewHookAntProject() throws Exception

      { final String projectName = "test-hook-project-sdk"; final NewLiferayPluginProjectOp op = newProjectOp(); op.setProjectName( projectName ); op.setPluginType( PluginType.hook ); final IProject hookProject = createAntProject( op ); final IVirtualFolder webappRoot = CoreUtil.getDocroot( hookProject ); assertNotNull( webappRoot ); final IVirtualFile hookXml = webappRoot.getFile( "WEB-INF/liferay-hook.xml" ); assertEquals( true, hookXml.exists() ); }

      this code where in NewLiferayPluginProjectOpBase
      And config the sdk and bundle information.
      run this junit case,it will said failure.

        Attachments

          Activity

            People

            Assignee:
            terry.jia Terry Jia (Inactive)
            Reporter:
            terry.jia Terry Jia (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 32 weeks, 5 days ago

                Packages

                Version Package
                2.1.0