• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Testing | Deploy web applications using embedded Tomcat
  1. The POM file (pom.xml)
  2. Unit test example
  3. Web application resources (index.html, web.xml)

  1. The POM file (pom.xml)
  2. Unit test example
    src/test/java/mtitek/tomcat/embed/samples/MyTomcatTest.java:

    Notes:

    ► Adding resources to a WebArchive: addAsWebResource


    ► Adding resources to a WebArchive: importDirectory
  3. Web application resources (index.html, web.xml)
    src/test/resources/index.html:

    src/test/resources/web.xml:
© 2025  mtitek