Expand my Community achievements bar.

tim-schwalbe-NZ
tim-schwalbe-NZ
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hello guys,I want to create the following tree structure with the builder api from AEM Mocks.The problem is the it does not create the parsys.This my actual code:context.pageManager().create("/", "content", "cq:Page", "content");context.pageManager().create("/content", "de", "cq:Page", "de");context...

    Type

    Questions

    Views

    898

    Likes

    0

    Replies

    1
  • Hello I want to ask if it is possible to convert a String to Date, because its is not possible to change the datatype to date because production data can't be changed easily.Here is my first try but it does not work as expected:SELECT * FROM [nt:unstructured] as ref WHERE ISDESCENDANTNODE(ref,[/cont...

    Type

    Discussions

    Views

    1.4K

    Likes

    0

    Replies

    2
  • Yes it is sorry for too fast askingcontext.build().resource("/content/de/ueber-uns/presse/press-releases/2017/release1", "prop1", "value1").  resource("/content/de/ueber-uns/presse/press-releases/2017/release1", "prop2", "value2");context.build().resource("/content/de/ueber-uns/presse/press-release...

    Type

    Questions

    Views

    1.6K

    Likes

    0

    Replies

    0
  • Hello, after I was able to start my test cases using AEM Mocks, I want to know if it is possible to set also properties for the pages created with the AemContext.I want to give the pages some properties and test them afterwards.context.pageManager().create("/", "content", "cq:Page", "content");conte...

    Type

    Questions

    Views

    2.2K

    Likes

    0

    Replies

    1
  • Okay now it was able to solve the issue.I just need to add the following lib and deleted the same libs without version number. Can anyone explain whats about the libs without version? Where does the version come from?<dependency>  <groupId>io.wcm</groupId>  <artifactId>io.wcm.testing.aem-mock</artif...

    Type

    Questions

    Views

    1.4K

    Likes

    0

    Replies

    0
  • Here is another example with the same error:java: cannot access org.junit.rules.TestRule class file for org.junit.rules.TestRule not found import com.day.cq.wcm.api.Page;  import io.wcm.testing.mock.aem.junit.AemContext;  import org.apache.sling.api.resource.Resource;  import org.junit.Before;  impo...

    Type

    Questions

    Views

    1.4K

    Likes

    0

    Replies

    0
  • It is there :   @Rule   public final AemContext context = new AemContext(ResourceResolverType.JCR_MOCK);

    Type

    Questions

    Views

    1.4K

    Likes

    0

    Replies

    0
  • Hello its me again,I want to test my Servlet but after the test started I got an error message:Error:(60, 28) java: cannot access org.junit.rules.TestRule  class file for org.junit.rules.TestRule not foundThe test does not start.I don't have any Idea how to solve this, I am also not very experienced...

    Type

    Questions

    Views

    4.3K

    Likes

    0

    Replies

    6
  • So thanks to everyone,I solved the issue by adding the following to my pom file. Is this the right way to do?<Embed-Dependency>  rome,  rome-utils,  jdom2</Embed-Dependency>

    Type

    Questions

    Views

    1.4K

    Like

    1

    Replies

    0
  • Hello guys,I ran into a problem using the rome library for creating RSS Feeds. https://rometools.github.io/If I just add the lib to my pom.xml and deploy it to an AEM instance and call a servlet which should use the library it just fails. Iam unable to debug into the servlet.I think it is a class lo...

    Type

    Questions

    Views

    1.8K

    Like

    1

    Replies

    7
Top badges earned by tim-schwalbe-NZ
Customize the badges you want to showcase on your profile