diff --git a/shared/src/main/java/com/vaadin/browserless/BaseBrowserlessTest.java b/shared/src/main/java/com/vaadin/browserless/BaseBrowserlessTest.java index 777ad03b..f8249eb6 100644 --- a/shared/src/main/java/com/vaadin/browserless/BaseBrowserlessTest.java +++ b/shared/src/main/java/com/vaadin/browserless/BaseBrowserlessTest.java @@ -94,6 +94,7 @@ protected void initVaadinEnvironment() { * * @return the set of services implementation classes, never * {@literal null}. + * @since 25.3 */ protected final Set> allLookupServices() { return allLookupServices(testConfiguration()); @@ -117,6 +118,7 @@ protected final Set> allLookupServices() { * {@literal null} * @return the set of services implementation classes, never * {@literal null}. + * @since 25.3 */ @SuppressWarnings("deprecation") protected final Set> allLookupServices( diff --git a/shared/src/main/java/com/vaadin/browserless/BrowserlessApplicationContext.java b/shared/src/main/java/com/vaadin/browserless/BrowserlessApplicationContext.java index d285cbfc..df31eb2b 100644 --- a/shared/src/main/java/com/vaadin/browserless/BrowserlessApplicationContext.java +++ b/shared/src/main/java/com/vaadin/browserless/BrowserlessApplicationContext.java @@ -554,6 +554,7 @@ Set> getLookupServices() { * @throws IllegalArgumentException * if the name is blank or reserved by the browserless * environment + * @since 25.3 */ public Builder withApplicationProperty(String name, String value) { configuration.withApplicationProperty(name, value); @@ -570,6 +571,7 @@ public Builder withApplicationProperty(String name, String value) { * @throws IllegalArgumentException * if a name is blank or reserved by the browserless * environment + * @since 25.3 */ public Builder withApplicationProperties( Map properties) { @@ -587,6 +589,7 @@ public Builder withApplicationProperties( * the identifiers of the features to enable; must not be * {@code null} * @return this builder + * @since 25.3 */ public Builder withFeatureFlags(String... featureIds) { configuration.withFeatureFlags(featureIds); @@ -602,6 +605,7 @@ public Builder withFeatureFlags(String... featureIds) { * @param features * the features to enable; must not be {@code null} * @return this builder + * @since 25.3 */ public Builder withFeatureFlags(Feature... features) { configuration.withFeatureFlags(features); @@ -620,6 +624,7 @@ public Builder withFeatureFlags(Feature... features) { * {@code true} to enable the feature, {@code false} to * disable it * @return this builder + * @since 25.3 */ public Builder withFeatureFlag(String featureId, boolean enabled) { configuration.withFeatureFlag(featureId, enabled); @@ -638,6 +643,7 @@ public Builder withFeatureFlag(String featureId, boolean enabled) { * {@code true} to enable the feature, {@code false} to * disable it * @return this builder + * @since 25.3 */ public Builder withFeatureFlag(Feature feature, boolean enabled) { configuration.withFeatureFlag(feature, enabled); @@ -659,6 +665,7 @@ public Builder withFeatureFlag(Feature feature, boolean enabled) { * @param testConfiguration * the configuration to apply; must not be {@code null} * @return this builder + * @since 25.3 */ public Builder withConfiguration( BrowserlessConfiguration testConfiguration) { diff --git a/shared/src/main/java/com/vaadin/browserless/CommercialTesterWrappers.java b/shared/src/main/java/com/vaadin/browserless/CommercialTesterWrappers.java index 00841248..d711e4e4 100644 --- a/shared/src/main/java/com/vaadin/browserless/CommercialTesterWrappers.java +++ b/shared/src/main/java/com/vaadin/browserless/CommercialTesterWrappers.java @@ -36,6 +36,7 @@ public interface CommercialTesterWrappers { * @param grid * the GridPro instance to be tested * @return a GridProTester instance wrapping the given GridPro + * @since 25.3 */ default GridProTester, V> test(GridPro grid) { return BaseBrowserlessTest.internalWrap(GridProTester.class, grid); @@ -49,6 +50,7 @@ default GridProTester, V> test(GridPro grid) { * @param itemType * the type of the items in the GridPro * @return a GridProTester instance wrapping the given GridPro + * @since 25.3 */ default GridProTester, V> test(GridPro grid, Class itemType) { @@ -72,7 +74,7 @@ default ChartTester test(Chart chart) { * @param dashboard * the dashboard instance to be tested * @return a DashboardTester instance wrapping the given dashboard - * @since 1.1 + * @since 1.1.2 */ default DashboardTester test(Dashboard dashboard) { return BaseBrowserlessTest.internalWrap(DashboardTester.class, diff --git a/shared/src/main/java/com/vaadin/browserless/ComponentQuery.java b/shared/src/main/java/com/vaadin/browserless/ComponentQuery.java index 6a9d55de..fb557db0 100644 --- a/shared/src/main/java/com/vaadin/browserless/ComponentQuery.java +++ b/shared/src/main/java/com/vaadin/browserless/ComponentQuery.java @@ -701,6 +701,7 @@ public ComponentQuery withoutAttribute(String attribute, String value) { * @return this element query instance for chaining * @throws IllegalArgumentException * if {@code slot} is {@literal null} or blank + * @since 25.3 */ public ComponentQuery withinSlot(String slot) { if (slot == null || slot.isBlank()) { diff --git a/shared/src/main/java/com/vaadin/browserless/ComponentTester.java b/shared/src/main/java/com/vaadin/browserless/ComponentTester.java index 9f0f6a91..1cabe28f 100644 --- a/shared/src/main/java/com/vaadin/browserless/ComponentTester.java +++ b/shared/src/main/java/com/vaadin/browserless/ComponentTester.java @@ -105,6 +105,7 @@ public boolean isUsable() { * change its value, so it is considered not usable. * * @return {@code true} if the component is read-only + * @since 25.3 */ protected boolean isComponentReadOnly() { return getComponent() instanceof HasValue hasValue @@ -199,6 +200,7 @@ public final void ensureComponentIsUsable() { * @throws IllegalStateException * if the component is not usable, with details on its current * state. + * @since 25.3 */ protected void ensureComponentIsUsableOrDetach() { try { @@ -538,6 +540,7 @@ private AbstractFieldSupport getFieldSupport(Object target) { * if the component is not usable * @throws IllegalArgumentException * if the component does not hold a value + * @since 25.3 */ protected void clearAsUser() { ensureComponentIsUsable(); @@ -563,6 +566,7 @@ protected void clearAsUser() { * visible * @throws IllegalArgumentException * if the component does not hold a value + * @since 25.3 */ protected void clickClearButtonAsUser() { ensureComponentIsUsable(); @@ -614,6 +618,7 @@ protected void setValueAsUser(V value) { * the field to set the value to, not {@literal null}. * @param value * the new value, may be null. + * @since 25.3 */ protected void setValueAsUser(HasValue field, V value) { final AbstractFieldSupport fs = getFieldSupport(field); @@ -643,6 +648,7 @@ protected void setValueAsUser(HasValue field, V value) { * @param field * the field to check, not {@literal null}. * @return {@literal true} if the value can be set as a user + * @since 25.3 */ protected boolean canSetValueAsUser(HasValue field) { return field instanceof AbstractField @@ -664,6 +670,7 @@ protected boolean canSetValueAsUser(HasValue field) { * the value as the client would send it, may be null. * @throws IllegalStateException * if the property does not accept updates from the client + * @since 25.3 */ protected void setPropertyAsUser(String property, Serializable value) { try { diff --git a/shared/src/main/java/com/vaadin/browserless/SecuredBrowserlessApplicationContext.java b/shared/src/main/java/com/vaadin/browserless/SecuredBrowserlessApplicationContext.java index f5e867e6..98dc72eb 100644 --- a/shared/src/main/java/com/vaadin/browserless/SecuredBrowserlessApplicationContext.java +++ b/shared/src/main/java/com/vaadin/browserless/SecuredBrowserlessApplicationContext.java @@ -217,6 +217,7 @@ public Builder withCloseHook(Runnable hook) { /** * @see BrowserlessApplicationContext.Builder#withApplicationProperty + * @since 25.3 */ public Builder withApplicationProperty(String name, String value) { base.withApplicationProperty(name, value); @@ -225,6 +226,7 @@ public Builder withApplicationProperty(String name, String value) { /** * @see BrowserlessApplicationContext.Builder#withApplicationProperties + * @since 25.3 */ public Builder withApplicationProperties( Map properties) { @@ -234,6 +236,7 @@ public Builder withApplicationProperties( /** * @see BrowserlessApplicationContext.Builder#withFeatureFlags(String...) + * @since 25.3 */ public Builder withFeatureFlags(String... featureIds) { base.withFeatureFlags(featureIds); @@ -242,6 +245,7 @@ public Builder withFeatureFlags(String... featureIds) { /** * @see BrowserlessApplicationContext.Builder#withFeatureFlags(Feature...) + * @since 25.3 */ public Builder withFeatureFlags(Feature... features) { base.withFeatureFlags(features); @@ -251,6 +255,7 @@ public Builder withFeatureFlags(Feature... features) { /** * @see BrowserlessApplicationContext.Builder#withFeatureFlag(String, * boolean) + * @since 25.3 */ public Builder withFeatureFlag(String featureId, boolean enabled) { base.withFeatureFlag(featureId, enabled); @@ -260,6 +265,7 @@ public Builder withFeatureFlag(String featureId, boolean enabled) { /** * @see BrowserlessApplicationContext.Builder#withFeatureFlag(Feature, * boolean) + * @since 25.3 */ public Builder withFeatureFlag(Feature feature, boolean enabled) { base.withFeatureFlag(feature, enabled); @@ -268,6 +274,7 @@ public Builder withFeatureFlag(Feature feature, boolean enabled) { /** * @see BrowserlessApplicationContext.Builder#withConfiguration + * @since 25.3 */ public Builder withConfiguration( BrowserlessConfiguration configuration) { diff --git a/shared/src/main/java/com/vaadin/browserless/TesterWrappers.java b/shared/src/main/java/com/vaadin/browserless/TesterWrappers.java index c3c9cd4d..1f8ada9a 100644 --- a/shared/src/main/java/com/vaadin/browserless/TesterWrappers.java +++ b/shared/src/main/java/com/vaadin/browserless/TesterWrappers.java @@ -180,6 +180,7 @@ default AccordionTester test(Accordion accordion) { * @param avatarGroup * the component to wrap * @return a tester for the given component + * @since 25.3 */ default AvatarGroupTester test(AvatarGroup avatarGroup) { return BaseBrowserlessTest.internalWrap(AvatarGroupTester.class, @@ -201,6 +202,7 @@ default ButtonTester