[java-shib-shared] 01/03: JSSH-29 Add a @NonnullBeforeTest annotation
Rod Widdowson
rdw at steadingsoftware.com
Fri Apr 28 15:21:17 UTC 2023
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=45ba1d45209bd6fe674e5aa88b1b119c2b95fa26
commit 45ba1d45209bd6fe674e5aa88b1b119c2b95fa26
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Apr 28 15:49:11 2023 +0100
JSSH-29 Add a @NonnullBeforeTest annotation
https://shibboleth.atlassian.net/browse/JSSH-29
---
.../annotation/constraint/NonnullBeforeTest.java | 35 ++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/shib-support/src/main/java/net/shibboleth/shared/annotation/constraint/NonnullBeforeTest.java b/shib-support/src/main/java/net/shibboleth/shared/annotation/constraint/NonnullBeforeTest.java
new file mode 100644
index 00000000..10e6123b
--- /dev/null
+++ b/shib-support/src/main/java/net/shibboleth/shared/annotation/constraint/NonnullBeforeTest.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.shared.annotation.constraint;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+
+/**
+ * Indicates that the annotated item will not be null by the time that any method marked
+ * with the testNG annotation <code>@Test</code> runs.
+ *
+ * <p>This is typically used to annotate fields (or getters) that are given a value during
+ * a preparatory phase (for instance <code>@BeforeMethod</code>)
+ */
+ at Documented
+ at Target({ElementType.FIELD, ElementType.LOCAL_VARIABLE, ElementType.METHOD})
+public @interface NonnullBeforeTest {
+
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list