Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Xavier_Dupertio
Community profile Xavier_Dupertio Level 2
Job title here
Location here
5 BADGES
Level 2

Level 2

Learn more
Joined the community 04-06-2012 3:12:44 PM
Offline
Top badges earned by Xavier_Dupertio
Customize the badges you want to showcase on your profile
Re: Getting a LoginException when using AEMContext to loa...
Avatar
Ignite 3
Level 2
Xavier_Dupertio
Level 2

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
Xavier_Dupertio
- Adobe Experience Manager
Hi Jörg,I changed io.wcm.testing.aem-mock.junit5 to 4.0.0 from 2.5.2. It worked after that.

Views

147

Likes

0

Replies

0
Getting a LoginException when using AEMContext to load mock content during unit testing.
Avatar
Ignite 3
Level 2
Xavier_Dupertio
Level 2

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
Xavier_Dupertio
- Adobe Experience Manager
I am having a LoginException when loading mock data while testing a servlet using AEMContext in a JUnit test. I want to load a sample node without an exception. I am using AEMContext within a JUnit test for a servlet. public final AemContext context = new AemContext(ResourceResolverType.JCR_MOCK); @BeforeEach void setUp() throws Exception { context.load().json(getClass().getResourceAsStream(getClass().getSimpleName() + ".json"),"/var/dupertious/topic"); } When this code runs, it throws a LoginEx...

Views

215

Likes

0

Replies

2
Datastore garbage collection in AEM 6?
Avatar
Ignite 3
Level 2
Xavier_Dupertio
Level 2

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
Xavier_Dupertio
- Adobe Experience Manager
How can I run datastore garbage collection in AEM 6? The AEM server uses TarMK with a file datastore.Thanks for any guidance!

Views

149

Likes

0

Replies

2
Re: Sling Models: Using @Source("child-resources")
Avatar
Ignite 3
Level 2
Xavier_Dupertio
Level 2

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
Xavier_Dupertio
- Adobe Experience Manager
Thank-you, Justin. That makes a great deal of sense. I was too focused at first and trying to do it all through injection. It is not cheating to use what is already there, is it?I was able to get injection of grandchildren to work and that works well.

Views

779

Likes

0

Replies

0
Sling Models: Using @Source("child-resources")
Avatar
Ignite 3
Level 2
Xavier_Dupertio
Level 2

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
Xavier_Dupertio
- Adobe Experience Manager
I have not been able to get the "child-resources" injector to work within the @Source annotation.Documentation I am using: http://sling.apache.org/documentation/bundles/models.htmlI have tried to use the @Inject with a List object. Does anyone have an example of this injector working? The ACS Commons does not have an example of this. My model works when I remove the children code and only get the title.package com.github.models.models; import java.util.List; import javax.inject.Inject; import ja...

Views

2.6K

Like

1

Replies

4
Likes given to
Likes from