adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
730 stars 736 forks source link

Unit testing classes are not available in jar #49

Closed shajiahmed closed 6 years ago

shajiahmed commented 7 years ago

Couple of java class files from unit testing src/test/java are not available, few of them are from com.adobe.cq.wcm.core.components.context Can't use classes from this package, they may not be available at adobe repo as well its not included in jar file as well

vladbailescu commented 7 years ago

@shajiahmed, which classes are not available, the io.wcm.testing.mock.aem.junit.* package? That's available at http://wcm.io/testing/ and https://mvnrepository.com/artifact/io.wcm/io.wcm.testing.aem-mock

shajiahmed commented 7 years ago

wcm.io test classes start with package io.wcm.testing for core components there are test classes starting with package com.adobe.cq.core.components I checked in repo it is not found in jar file as well. Files from the following src/test/java are missing https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components/tree/master/bundles/core/src/test/java/com/adobe/cq/wcm/core/components I found this while trying to use the following classes com.adobe.cq.wcm.core.components.context.CoreComponentTestContext; com.adobe.cq.wcm.core.components.context.MockStyle;

justinedelson commented 7 years ago

I'm not sure these classes are intended for reuse by other proejcts. If so, one of the approaches documented in https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html should be followed.

bpauli commented 6 years ago

Hi @shajiahmed,

as @justinedelson mentioned this classes are not intended to use outside of the project and there is currently no plan to include this classes inside the jar.

If you want to use this classes inside your project you should duplicate / adapt this classes inside of your project.