Skip to content

Instantly share code, notes, and snippets.

View rmcdouga's full-sized avatar

Rob McDougall rmcdouga

View GitHub Profile
@rmcdouga
rmcdouga / gist:117a947d3488b1a47a1bb656c6ba017f
Created March 3, 2023 15:44
PlantUML Helpful Starter Sample
@startuml Diagram
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml
!define DEVICONS https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/master/devicons2
!define FONTAWESOME https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/master/font-awesome-5
!define MATERIAL https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/master/material
!include FONTAWESOME/java.puml
!include FONTAWESOME/linux.puml
!include DEVICONS/dot_net.puml
!include DEVICONS/spring.puml
@rmcdouga
rmcdouga / Jakarta_Activation_Wishlist.md
Last active April 6, 2023 12:26
Jakarta Activation Wish List
  1. Add a ByteArrayDataSource
    This seems like an odd ommission, surely an in-memory data source makes sense and is trivial to implement (but no more trivial than FileDataSource). It would save people from having to implement this in many places.

  2. Move Implementation tests into API project, convert to JUnit 5
    The jakarta.activation apis are a mix of API and implementation. Is there any reason why the implementation pieces are not tested within the API project? Having the tests closer to the code would ease the maintenance burdon and be more in line with modern practices. This will help new contributors.

  3. Add "name" attribute

@rmcdouga
rmcdouga / logback-test.xml
Created June 5, 2023 14:49
Logback file configuration to turn up wiremock debugging. Placed in the src/test/resources directory.
<configuration>
<!-- Turning down the wiremock logging -->
<!-- based on https://stackoverflow.com/questions/44460834/cant-turn-off-debug-logging-for-wiremock -->
<logger name="com.github.tomakehurst.wiremock" level="DEBUG" />
<logger name="wiremock.org" level="DEBUG" />
<logger name="WireMock" level="DEBUG" />
<!-- wiremock has per endpoint servlet logging -->
<logger name="/" level="DEBUG" />
</configuration>