AEM In Action: Let's work on a AEM component development with Sling Model and TDD | AEM Community Blog Seeding

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

30-11-2020

BlogImage.jpg

AEM In Action: Let's work on a AEM component development with Sling Model and TDD by Veena vikraman

Abstract

In this episode of AEM In Action, I will try to walk you through the development of a component along with Sling Model. Will also try to do TDD for Sling Models. This video is going to be pretty long since I tried to do development from scratch. We will work together to develop the component and sling model in AEM. Sling Models are pure annotation driven POJOs. Since this video is going to be really long, please make use of the chapters below so that you can skip to parts which is important for you. Once again thanks .

0:00 Introduction - a brief history of my experience with JSPs
6:25 Component explanation
9:20 Add component on to the editable template and page
12:10 JSONs for TDD
15:35 Write the Sling Model
18:10 Create the test class
26:20 PostConstruct Annotation
35:05 Modify test
39:05 Modify HTL to add Sling Model
41:13 Test the page

Read Full Blog

AEM In Action: Let's work on a AEM component development with Sling Model and TDD

Q&A

Please use this thread to ask the related questions.

AEM AEMEBlogSeeding Experience Manager