@@ -0,0 +1,1442 @@
+/**%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0A * use this file except in compliance with the License. You may obtain a copy of%0A * the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations under%0A * the License.%0A *%0A * Copyright 2012-2015 the original author or authors.%0A */%0Apackage org.assertj.swing.core.matcher.bylabel;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport static org.assertj.swing.test.builder.JTextFields.textField;%0A%0Aimport org.assertj.swing.test.core.EDTSafeTestCase;%0Aimport org.junit.Test;%0A%0A/**%0A * Tests for %7B@link JLabeledTextComponentMatcher#matches(java.awt.Component)%7D.%0A * We are looking for a text field with a label. The component to be matched%0A * should have a parent.%0A *%0A * @author I%C3%B1aki Ibarrola%0A */%0Apublic class JLabeledTextComponentMatcher_no_parent_Test extends EDTSafeTestCase %7B%0A%0A    @Test%0A    public void should_Always_Return_False_When_JTextComponent_Has_No_Parent() %7B%0A        JLabeledTextComponentMatcher matcher = JLabeledTextComponentMatcher.withLabelText(%22hello%22);%0A        assertThat(matcher.matches(textField().createNew())).isFalse();%0A    %7D%0A%7D%0A

Add a test to check that a component with no parent does not match.