Release History

Version Date Description
2.7.0 2019-08-20  
2.6.0 2019-07-22  
2.5.2 2019-06-26  
2.5.0 2019-05-20  
2.4.8 2019-05-09  
2.4.6 2019-04-05  
2.4.4 2019-03-17  
2.4.2 2019-03-14  
2.4.0 2019-02-22  
2.3.4 2018-12-18  
2.3.2 2018-09-03  
2.3.0 2018-08-27  
2.2.16 2018-08-06  
2.2.14 2018-03-23  
2.2.12 2018-02-05  
2.2.10 2018-01-15  
2.2.8 2017-10-17  
2.2.6 2017-06-02  
2.2.4 2017-05-29  
2.2.2 2017-04-04  
2.2.0 2017-01-02  
2.1.0 2016-11-11  
2.0.2 2016-09-19  
2.0.0 2016-07-15  
1.8.0 2016-07-15  
1.7.0 2016-02-16  
1.6.4 2015-12-22  
1.6.2 2015-11-12  
1.6.0 2015-10-28  
1.5.0 2015-10-16  
1.4.0 2015-09-16  
1.3.2 2015-05-28  
1.3.0 2015-04-17  
1.2.6 2015-03-09  
1.2.4 2014-12-03  
1.2.2 2014-11-05  
1.2.0 2014-10-22  
1.1.0 2014-10-02  
1.0.0 2014-09-19  

Release 2.7.0 – 2019-08-20

Type Changes By
See What's new in AEM Mocks 2.5.0-2.7.0 for an overview of the last three releases.
Add support for testing content policies. sseifert
Add support for DAM services AssetStore and AssetHandler with default implementation for JPEG, GIF, PNG, TIFF, SVG. For TIFF and SVG file formats Java ImageIO plugins are required. sseifert
Implement Component.getLocalResource method. sseifert
MockAssetManager: Send DamEvent when creating original rendition. sseifert
Update to latest OSGi Mock, Sling Mock. sseifert

Release 2.6.0 – 2019-07-22

Type Changes By
Add mock implementations of Granite ResourceCollectionManager and ResourceCollection. sseifert
MockPageManager: Support copying initial content of structured templates as well as from classic templates. sseifert
MockAssetManager: Allow creating assets with null InputStream and updating existing assets. Fixes WTES-39. sseifert

Release 2.5.2 – 2019-06-26

Type Changes By
Allow empty values for title and descriptions when creating content fragment variants. sseifert
MockContentFragment.getElement: Fallback to "main" and "master" elements if element name is null or empty string. rijoalvi
Update subset of AEM built-in node types. sseifert
Update to latest Servlet Helpers, Sling Mock, Sling Mock Oak. sseifert

Release 2.5.0 – 2019-05-20

Type Changes By
Add support for text-based and structured content fragments. sseifert

Release 2.4.8 – 2019-05-09

Type Changes By
Update to latest Sling Mock, Sling Mock Oak. sseifert
Add methods newly defined in AEM 6.5 API. sseifert
MockTag.getLocalizedTitle: AEM uses language and country code always in lowercase mode. Fixes WTES-36. sseifert
MockTag.getLocalizedTitle: Replace namespace delimiter and separator with space in title and localized title. Fixes WTES-36. sseifert

Release 2.4.6 – 2019-04-05

Type Changes By
Send DAM OSGi events when creating assets, creation or removing renditions via AssetManager/Asset API. sseifert
JUnit 5 integration: Support setting AemContext fields in super classes. sseifert
ContentBuilder: Add overlays of create page methods with parent page and child page name. sseifert
Update to latest Sling Mock. sseifert
Allow to adapt MockTemplate to resource. sseifert

Release 2.4.4 – 2019-03-17

Type Changes By
Eliminate compile dependency to slf4j-simple - it's not required to run aem-mock. sseifert

Release 2.4.2 – 2019-03-14

Type Changes By
ContentBuilder: Add create page and asset methods with properties varargs parameter instead of properties map. sseifert
Update to latest OSGi Mock, JCR Mock, Resource Resolver Mock. sseifert
Explicitly set the version of osgi-mock.junit4 dependency in aem-mock.junit4. sseifert

Release 2.4.0 – 2019-02-22

Type Changes By
ContentBuilder: Add convenience methods to create child resources in pages. sseifert
Update to latest OSGi Mock. sseifert
MockAsset: Support getMetadataValueFromJcr method. sseifert
MockDesign: Return default path for getPath(). sseifert
MockComponent: Support getSuperComponent method. sseifert

Release 2.3.4 – 2018-12-18

Type Changes By
Update to latest OSGi Mock, JCR Mock and Sling Mock Oak. sseifert
MockComponentContext: Allow to set cell and cssClasNames. sseifert
Fix bug in MockTagManager.collectResourceTags methods. jwilliams

Release 2.3.2 – 2018-09-03

Type Changes By
Dynamically resolve AEM-specific objects as SlingBindings properties. Fixes WTES-34. sseifert
Enhance Designer implementation and return (empty) Design and Style objects. sseifert
Set WCM ComponentContext also when setting current resource that is part of a page. sseifert
Update to latest OSGi Mock, Sling Mock. sseifert

Release 2.3.0 – 2018-08-27

Type Changes By
Add JUnit 5 extensions. sseifert
Add Jetbrains NotNull/Nullable annotations to API. sseifert
Update to latest OSGi Mock, Sling Mock, JCR Mock. sseifert

Release 2.2.16 – 2018-08-06

Type Changes By
Add implementation of MockAsset.getID method. Fixes WTES-32. sjain
Add AemContextBuilder.registerSlingModelsFromClassPath method to allow to switch off automatica registration of Sling Models from the classpath. sseifert
Update to latest OSGi Mock, Sling Mock, JCR Mock. sseifert

Release 2.2.14 – 2018-03-23

Type Changes By
Update to latest OSGi Mock, Sling Mock. sseifert

Release 2.2.12 – 2018-02-05

Type Changes By
Add methods newly defined in AEM 6.4 API. sseifert
Add Sling API as direct dependency because in latest Ueber JAR the Sling API is missing some implementation classes required in unit tests. sseifert
Update to latest Sling Mock. sseifert
MockTagManager: Detect root path dynamically based on AEM API dependencies: /content/etc:tags (AEM 6.4) or /etc/tags (AEM 6.3 and below). Fixes WTES-30. sseifert
ContentBuilder.asset stores optional asset metadata in wrong path. sseifert

Release 2.2.10 – 2018-01-15

Type Changes By
Update to latest OSGi Mock. sseifert
ContentBuilder: Cache generated dummy images if the same images are used in multiple tests. sseifert
Update slf4j-simple dependency to version 1.7.25. mrozati

Release 2.2.8 – 2017-10-17

Type Changes By
Update to latest OSGi Mock, JCR Mock, Sling Mock and ResourceResolver Mock. sseifert

Release 2.2.6 – 2017-06-02

Type Changes By
Implement PageManager.touch (only shallow mode). Fixes WTES-27. cnagel

Release 2.2.4 – 2017-05-29

Type Changes By
Switch back to commons-imaging 1.0-R1534292 because only this version is available on repo.adobe.com. sseifert
Update to latest OSGi, Sling Mock and JCR Mock. sseifert
Make compatible with AEM 6.3 API. sseifert

Release 2.2.2 – 2017-04-04

Type Changes By
Page.getAbsoluteParent: Special handling for pages in launches. Fixes WTES-26. sseifert
PageManager.create: Validate name with JcrUtil.isValidName. sseifert
AemContext.currentPage: Ensure ComponentContext is cleared as well when current page is set to null. sseifert
Update to latest OSGi, Sling Mock and ResourceResolver Mock. sseifert
Disable vanity support by default in ResourceResolver. sseifert
Switch to Java 8 as minimum versions. sseifert

Release 2.2.0 – 2017-01-02

Type Changes By
Update to latest OSGi, JCR, Sling and ResourceResolver Mock. sseifert
Add ContextPlugin support. sseifert
Support Asset.setBatchMode/isBatchMode. Fixes WTES-24. drudolph

Release 2.1.0 – 2016-11-11

Type Changes By
Add AssetManager mock implementation. Fixes WTES-22. drudolph
PageManager: Skip protected JCR properties on page creation with template. Fixes WTES-23. sseifert
Update to latest Sling Mock. sseifert

Release 2.0.2 – 2016-09-19

Type Changes By
Cleanup all dependencies to make sure the correct ones from AEM 6.2 are used. Fixes WTES-19. sseifert
Update to latest JCR Mock, Sling Mock (2.x) and OSGi Mock (2.x). sseifert
MockAsset.getRenditions() should return modifiable list. Fixes WTES-20. sseifert
MockPageManager.create should support creating pages without name but with title. Fixes WTES-21. sseifert

Release 2.0.0 – 2016-07-15

Type Changes By
Update to AEM 6.2 API. sseifert
Update to latest Sling Mock (2.x) and OSGi Mock (2.x). sseifert

Release 1.8.0 – 2016-07-15

Type Changes By
Add AemContextBuilder with possiblity to specify custom Resource Resolver Factory Activator configuration and setup/teardown callbacks. Fixes WTES-18. sseifert
Update to latest Sling, JCR and Resource Resolver Mock. sseifert

Release 1.7.0 – 2016-02-16

Type Changes By
MockComponent: Add support for getComponentGroup, noDecoration, getHtmlTagAttributes. sseifert
Update to latest OSGi, Sling, JCR and Resource Resolver Mock. sseifert

Release 1.6.4 – 2015-12-22

Type Changes By
Add getDeleted/getDeletedBy methods to MockPage to support page filtering with AEM 6.1 API. sseifert
Include AEM and OSGi APIs in 'provided' scope to let the consuming project decide which to use (other versions use other artifact ids). sseifert

Release 1.6.2 – 2015-11-12

Type Changes By
Apply customized configuration for ResourceResolverFactoryActivator with the default values from AEM. sseifert

Release 1.6.0 – 2015-10-28

Type Changes By
Add support for AEM ComponentContext, EditContext and EditConfig. sseifert
AemContext: Set current page via ComponentContext and allow setting current resource not related to current page. sseifert

Release 1.5.0 – 2015-10-16

Type Changes By
Add support for JCR_OAK, JCR_JACKRABBIT and NONE resource resolver types. sseifert
Automatically register AEM node type definitions for JCR_OAK and JCR_JACKRABBIT. sseifert
ContentBuilder: add tag() method. sseifert
MockTag: Add implementation for getXPathSearchExpression method. sseifert
Update to latest OSGi Mock and Sling Mock. sseifert

Release 1.4.0 – 2015-09-16

Type Changes By
MockPageManager: Support default content from the template's jcr:content node when creating pages. sseifert
MockAsset: Support adding and removing of renditions. sseifert
ContentBuilder: Add methods for creating DAM assets and renditions. sseifert
Update to latest OSGi Mock, JCR Mock, Sling Mock and ResourceResolver Mock. sseifert
Fix potential NPE in MockComponentManager when resource has no resource type. sseifert
MockTagManager: Find in all resources in "/", not only in "/content". sseifert

Release 1.3.2 – 2015-05-28

Type Changes By
Update to latest OSGi Mock, JCR Mock, Sling Mock and ResourceResolver Mock. sseifert

Release 1.3.0 – 2015-04-17

Type Changes By
Add Mocks for ComponentManager and Component. Fixes WCMIO-71. sseifert
Add Mocks for TagManager and Tag. Fixes WCMIO-52. swalters
Add Mock for Designer. Fixes WCMIO-65. sseifert

Release 1.2.6 – 2015-03-09

Type Changes By
Update to latest OSGi Mock, JCR Mock, Sling Mock and adapt AdapterFactory registrations accordingly. sseifert

Release 1.2.4 – 2014-12-03

Type Changes By
Implement equals and hashCode methods for MockPage, MockTemplate, MockAsset and MockRendition. Fixes WCMIO-34. sseifert

Release 1.2.2 – 2014-11-05

Type Changes By
MockPage.getAbsoluteParent behaves different than AEM. Fixes WCMIO-29. sseifert
Removed default registration of AemObjectInjector to cleanly separate from other wcm.io Features. If you depend on this please use the io.wcm.testing.wcm-io-mock.sling package. sseifert

Release 1.2.0 – 2014-10-22

Type Changes By
MockPage: Support native behavior of the Page in adaptTo method. If adaption of the page object returned null, try to adapt page's resource. Fixes WCMIO-16. isechyn
MockPage: Support getLanguage and deep listChildren methods. Fixes WCMIO-21. sseifert
Switch to Sling versions of sling-mock, osgi-mock, jcr-mock. Switch default resource resolver type to RESOURCERESOLVER_MOCK. Fixes WCMIO-15. sseifert

Release 1.1.0 – 2014-10-02

Type Changes By
ContentBuilder: Support creating pages with path argument only. sseifert
AemContext: Add getService and getServices methods. Return useful values for current* and register* methods. sseifert

Release 1.0.0 – 2014-09-19

Type Changes By
Initial release. sseifert

Back to top

Version: 2.7.1-SNAPSHOT. Last Published: 2019-08-20.