Skip to content

Commit

Permalink
4.x: Add more javadoc for AddConfigBlock annotations (helidon-io#9697) (
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain1653 authored Feb 11, 2025
1 parent 2be95bd commit 759794a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@
/**
* Add a configuration fragment to the {@link Configuration#useExisting() synthetic test configuration}.
* <p>
* Example:
* <pre>
* &#64;AddConfigBlock(type = "yaml", value = """
* foo1:
* bar: "value1"
* """)
* &#64;AddConfigBlock(type = "properties", value = """
* foo2=value2
* foo3=value3
* """)
* class MyTest {
* }
* </pre>
* <p>
* This annotation can be repeated.
* <p>
* If used on a method, the container will be reset regardless of the test lifecycle.
Expand All @@ -40,7 +54,7 @@
@Deprecated(since = "4.2.0")
public @interface AddConfigBlock {
/**
* Specifies the configuration format.
* Specifies the configuration format. Possible values are: 'yaml' and `properties`.
* <p>
* The default format is 'properties'
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@
/**
* Add a configuration fragment to the {@link Configuration#useExisting() synthetic test configuration}.
* <p>
* Example:
* <pre>
* &#64;AddConfigBlock(type = "yaml", value = """
* foo1:
* bar: "value1"
* """)
* &#64;AddConfigBlock(type = "properties", value = """
* foo2=value2
* foo3=value3
* """)
* class MyTest {
* }
* </pre>
* <p>
* This annotation can be repeated.
* <p>
* If used on a method, the container will be reset regardless of the test lifecycle.
Expand All @@ -40,7 +54,7 @@
@Repeatable(AddConfigBlocks.class)
public @interface AddConfigBlock {
/**
* Specifies the configuration format.
* Specifies the configuration format. Possible values are: 'yaml' and `properties`.
* <p>
* The default format is 'properties'
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@
/**
* Add a configuration fragment to the {@link Configuration#useExisting() synthetic test configuration}.
* <p>
* Example:
* <pre>
* &#64;AddConfigBlock(type = "yaml", value = """
* foo1:
* bar: "value1"
* """)
* &#64;AddConfigBlock(type = "properties", value = """
* foo2=value2
* foo3=value3
* """)
* class MyTest {
* }
* </pre>
* <p>
* This annotation can be repeated.
* <p>
* If used on a method, the container will be reset regardless of the test lifecycle.
Expand All @@ -40,7 +54,7 @@
@Deprecated(since = "4.2.0")
public @interface AddConfigBlock {
/**
* Specifies the configuration format.
* Specifies the configuration format. Possible values are: 'yaml' and `properties`.
* <p>
* The default format is 'properties'
*
Expand Down

0 comments on commit 759794a

Please sign in to comment.