1 /* 2 * Copyright (c) 2002-2025 Gargoyle Software Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * https://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 package org.htmlunit.junit.annotation; 16 17 import static org.htmlunit.junit.annotation.TestedBrowser.CHROME; 18 import static org.htmlunit.junit.annotation.TestedBrowser.EDGE; 19 import static org.htmlunit.junit.annotation.TestedBrowser.FF; 20 import static org.htmlunit.junit.annotation.TestedBrowser.FF_ESR; 21 22 import java.lang.annotation.ElementType; 23 import java.lang.annotation.Retention; 24 import java.lang.annotation.RetentionPolicy; 25 import java.lang.annotation.Target; 26 27 /** 28 * Marks a test as not yet working for a particular browser (default value is all). 29 * This will cause a failure to be considered as success and a success as failure forcing 30 * us to remove this annotation when a feature has been implemented even unintentionally. 31 * @see TestedBrowser 32 * 33 * @author Ahmed Ashour 34 * @author Frank Danek 35 * @author Ronald Brill 36 * @author cd alexndr 37 */ 38 @Retention(RetentionPolicy.RUNTIME) 39 @Target(ElementType.METHOD) 40 public @interface NotYetImplemented { 41 42 /** 43 * The browsers with which the case is not yet implemented. 44 * @return the browsers 45 */ 46 TestedBrowser[] value() default { 47 EDGE, FF_ESR, FF, CHROME 48 }; 49 50 /** 51 * The operating systems with which the case is not yet implemented. 52 * @return the operating systems 53 */ 54 OS[] os() default {}; 55 }