blob: 35397bdd03dec7b90f17149e1c504bc865880b5c [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF 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 javax.accessibility;
import junit.framework.TestCase;
public class AccessibleHyperlinkTest extends TestCase{
class MockAccessibleHyperlink extends AccessibleHyperlink{
@Override
public boolean doAccessibleAction(int i) {
return false;
}
@Override
public Object getAccessibleActionAnchor(int i) {
return null;
}
@Override
public int getAccessibleActionCount() {
return 0;
}
@Override
public String getAccessibleActionDescription(int i) {
return null;
}
@Override
public Object getAccessibleActionObject(int i) {
return null;
}
@Override
public int getEndIndex() {
return 0;
}
@Override
public int getStartIndex() {
return 0;
}
@Override
public boolean isValid() {
return false;
}
}
/**
* @add tests {@link javax.accessibility.AccessibleHyperlink}
*/
public void test_constructor(){
MockAccessibleHyperlink mock=new MockAccessibleHyperlink();
assertNotNull(mock);
assertFalse(mock.isValid());
}
}