Skip to content

tlopesPT/quarkus-test-azure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structure

  • MessagePublisher

    • Service class, would contain business logic and forward message to client wrapper.
  • MessageClientWrapper

    • Infrastructure class, manages connection with IoT Hub and sends messages.
    • Should not open connection during quarkus tests
  • MessagePublisherTest

    • Tests service class business logic, should never interact with Iot Hub
    • Injects mock of MessageClientWrapper, but this does not prevent actual MessageClientWrapper from being instantiated previously, which requires IoT Hub credentials and can cause problems if not mocked properly.

Ideally when running the quarkus test, MessageClientWrapper is not instantiated.

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

./mvnw compile quarkus:dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages