Apply contribution from FELIX-3751.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1420799 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.form b/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.form
index 5d5abba..d7fc050 100644
--- a/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.form
+++ b/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.form
@@ -1,21 +1,3 @@
-<!--
- 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.
--->
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.5" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
@@ -98,9 +80,9 @@
</NonVisualComponents>
<Properties>
<Property name="defaultCloseOperation" type="int" value="2"/>
- <Property name="title" type="java.lang.String" value="Junit Runner"/>
+ <Property name="title" type="java.lang.String" value="FX Junit Runner"/>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[580, 580]"/>
+ <Dimension value="null"/>
</Property>
</Properties>
<SyntheticProperties>
@@ -109,183 +91,227 @@
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,84,0,0,2,98"/>
</AuxValues>
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="m_resultScroll" alignment="1" pref="598" max="32767" attributes="0"/>
+ <Group type="102" alignment="0" attributes="0">
+ <Component id="m_statusBar" max="32767" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="m_executedResults" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Group type="102" alignment="1" attributes="0">
+ <Group type="103" groupAlignment="1" attributes="0">
+ <Component id="txtSearchTest" alignment="0" max="32767" attributes="0"/>
+ <Component id="m_suiteScroll" pref="492" max="32767" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" max="-2" attributes="0">
+ <Component id="m_executeButton" max="32767" attributes="1"/>
+ <Component id="m_allButton" alignment="0" max="32767" attributes="1"/>
+ <Component id="btnSearch" alignment="0" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="txtSearchTest" alignment="3" min="-2" max="-2" attributes="0"/>
+ <Component id="btnSearch" alignment="3" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <Component id="m_allButton" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="m_executeButton" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Component id="m_suiteScroll" pref="152" max="32767" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="m_resultScroll" min="-2" pref="415" max="-2" attributes="0"/>
+ <EmptySpace type="separate" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="m_executedResults" min="-2" max="-2" attributes="0"/>
+ <Component id="m_statusBar" alignment="0" min="-2" max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
<SubComponents>
- <Container class="javax.swing.JPanel" name="m_panel">
- <Properties>
- <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[580, 560]"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[580, 566]"/>
- </Property>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="2" fill="1" ipadX="0" ipadY="0" insetsTop="3" insetsLeft="3" insetsBottom="3" insetsRight="3" anchor="10" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
- <SubComponents>
- <Container class="javax.swing.JScrollPane" name="m_suiteScroll">
- <Properties>
- <Property name="autoscrolls" type="boolean" value="true"/>
- <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[400, 147]"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[400, 147]"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="0" gridWidth="4" gridHeight="2" fill="1" ipadX="0" ipadY="0" insetsTop="3" insetsLeft="3" insetsBottom="3" insetsRight="3" anchor="10" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
- <SubComponents>
- <Component class="javax.swing.JList" name="m_suiteList">
- <Properties>
- <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
- <Connection code="new TestListModel()" type="code"/>
- </Property>
- <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[250, 147]"/>
- </Property>
- <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[250, 147]"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[250, 147]"/>
- </Property>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- <Component class="javax.swing.JButton" name="m_allButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="Select All"/>
- <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[90, 23]"/>
- </Property>
- <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[90, 23]"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[90, 23]"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="m_allButtonActionPerformed"/>
- </Events>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="4" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="3" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="17" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="javax.swing.JButton" name="m_executeButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="Execute"/>
- <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[90, 23]"/>
- </Property>
- <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[90, 23]"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[90, 23]"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="m_executeButtonActionPerformed"/>
- </Events>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="4" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="2" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Container class="javax.swing.JScrollPane" name="m_resultScroll">
- <Properties>
- <Property name="verticalScrollBarPolicy" type="int" value="22"/>
- <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[452, 402]"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="2" gridWidth="5" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="2" insetsLeft="3" insetsBottom="3" insetsRight="3" anchor="10" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
- <SubComponents>
- <Component class="javax.swing.JTable" name="m_resultTable">
- <Properties>
- <Property name="autoCreateRowSorter" type="boolean" value="true"/>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Tahoma" size="10" style="0"/>
- </Property>
- <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
- <Connection code="new ResultTableModel()" type="code"/>
- </Property>
- <Property name="autoResizeMode" type="int" value="4"/>
- <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[300, 400]"/>
- </Property>
- <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[300, 400]"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="null"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="m_resultTableMouseClicked"/>
- </Events>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
<Container class="javax.swing.JPanel" name="m_statusBar">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBoxLayout"/>
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="m_progress" alignment="0" pref="466" max="32767" attributes="0"/>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <Component id="m_progress" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
<SubComponents>
<Component class="javax.swing.JProgressBar" name="m_progress">
<Properties>
<Property name="indeterminate" type="boolean" value="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JLabel" name="m_executedResults">
- <Properties>
- <Property name="text" type="java.lang.String" value="aaaaaaaaaaaaaaa"/>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
</Properties>
</Component>
</SubComponents>
</Container>
+ <Component class="javax.swing.JButton" name="m_executeButton">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Execute"/>
+ <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[90, 23]"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[90, 23]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[100, 23]"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="executeButtonActionPerformed"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JButton" name="m_allButton">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Select All"/>
+ <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[90, 23]"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[90, 23]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[100, 23]"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="allButtonActionPerformed"/>
+ </Events>
+ </Component>
+ <Container class="javax.swing.JScrollPane" name="m_suiteScroll">
+ <Properties>
+ <Property name="autoscrolls" type="boolean" value="true"/>
+ </Properties>
+ <AuxValues>
+ <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
+ </AuxValues>
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
+ <SubComponents>
+ <Component class="javax.swing.JList" name="m_suiteList">
+ <Properties>
+ <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
+ <Connection code="new TestListModel()" type="code"/>
+ </Property>
+ <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ </Properties>
+ </Component>
+ </SubComponents>
+ </Container>
+ <Container class="javax.swing.JScrollPane" name="m_resultScroll">
+ <Properties>
+ <Property name="verticalScrollBarPolicy" type="int" value="22"/>
+ </Properties>
+ <AuxValues>
+ <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
+ </AuxValues>
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
+ <SubComponents>
+ <Component class="javax.swing.JTable" name="m_resultTable">
+ <Properties>
+ <Property name="autoCreateRowSorter" type="boolean" value="true"/>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Tahoma" size="10" style="0"/>
+ </Property>
+ <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
+ <Connection code="new ResultTableModel()" type="code"/>
+ </Property>
+ <Property name="autoResizeMode" type="int" value="4"/>
+ <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="m_resultTableMouseClicked"/>
+ </Events>
+ </Component>
+ </SubComponents>
+ </Container>
+ <Component class="javax.swing.JLabel" name="m_executedResults">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="aaaaaaaaaaaaaaa"/>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="null"/>
+ </Property>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JTextField" name="txtSearchTest">
+ </Component>
+ <Component class="javax.swing.JButton" name="btnSearch">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Search"/>
+ <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[90, 23]"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[90, 23]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[100, 23]"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnSearchActionPerformed"/>
+ </Events>
+ </Component>
</SubComponents>
</Form>
diff --git a/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.java b/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.java
index 90eb523..ed5133d 100644
--- a/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.java
+++ b/ipojo/junit4osgi/swing-runner/src/main/java/org/apache/felix/ipojo/junit4osgi/command/SwingRunner.java
@@ -1,3 +1,4 @@
+package org.apache.felix.ipojo.junit4osgi.command;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -16,27 +17,26 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.felix.ipojo.junit4osgi.command;
-import java.awt.Cursor;
-import java.awt.Point;
-import java.util.ArrayList;
-import java.util.List;
-import javax.swing.JScrollBar;
-
-import javax.swing.table.TableColumn;
import junit.framework.AssertionFailedError;
import junit.framework.Test;
import junit.framework.TestResult;
-
+import org.apache.felix.ipojo.InstanceManager;
import org.apache.felix.ipojo.junit4osgi.OSGiJunitRunner;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.framework.BundleListener;
+import javax.swing.*;
+import javax.swing.table.TableColumn;
+import java.awt.*;
+import java.util.ArrayList;
+import java.util.List;
+
/**
* Swing Runner for Junit4Osgi.
+ *
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
*/
public class SwingRunner extends javax.swing.JFrame implements BundleListener {
@@ -50,25 +50,26 @@
* Bundle context (to register the bundle listener).
*/
private BundleContext m_context;
-
+
/**
- * OSGi Junit Runner Service.
+ * OSGi Junit Runner Service.
*/
private OSGiJunitRunner m_runner;
-
+
/**
* State variable describing if we are executing tests.
*/
private boolean m_running = false;
-
+
+
// Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JButton btnSearch;
private javax.swing.JButton m_allButton;
private javax.swing.JButton m_executeButton;
private javax.swing.JLabel m_executedResults;
private javax.swing.JScrollPane m_message;
private javax.swing.JTextArea m_messageArea;
private javax.swing.JButton m_ok;
- private javax.swing.JPanel m_panel;
private javax.swing.JProgressBar m_progress;
private javax.swing.JDialog m_resultDialog;
private javax.swing.JScrollPane m_resultScroll;
@@ -76,21 +77,27 @@
private javax.swing.JPanel m_statusBar;
private javax.swing.JList m_suiteList;
private javax.swing.JScrollPane m_suiteScroll;
+ private javax.swing.JTextField txtSearchTest;
// End of variables declaration//GEN-END:variables
- /**
- * Constructor.
- * @param bc : bundle context.
- */
+
public SwingRunner(BundleContext bc) {
+ m_running = false;
m_context = bc;
}
+
+ private void internalInitComponents() {
+ initComponents();
+ }
+
+
+
/**
* Start method.
*/
public void start() {
- initComponents();
+ internalInitComponents();
setVisible(true);
m_resultDialog.setVisible(false);
refreshSuites();
@@ -112,6 +119,8 @@
}
}
+
+
/**
* Stop method.
*/
@@ -120,49 +129,68 @@
dispose();
}
+
/**
* Refresh the list of available test suites.
*/
@SuppressWarnings("unchecked")
private void refreshSuites() {
- List<Test> list = m_runner.getTests();
+
+ String textToSearch = txtSearchTest.getText();
+ List<Test> tests = m_runner.getTests();
+
TestListModel lm = (TestListModel) m_suiteList.getModel();
lm.clear();
- for (Test t : list) {
- lm.addTest(t);
+
+ for (Test test : tests) {
+ String testName = test.toString();
+ if (textToSearch != null && !textToSearch.trim().equals("")) {
+ if (testName.toLowerCase().indexOf(textToSearch.toLowerCase()) != -1) {
+
+ lm.addTest(test);
+ }
+ } else {
+ // found all
+ lm.addTest(test);
+
+ }
}
+
+ //getInstanceManager().onExit(this, "refreshSuites", null);
}
- /** This method is called from within the constructor to
+ /**
+ * This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
m_resultDialog = new javax.swing.JDialog();
m_message = new javax.swing.JScrollPane();
m_messageArea = new javax.swing.JTextArea();
m_ok = new javax.swing.JButton();
- m_panel = new javax.swing.JPanel();
- m_suiteScroll = new javax.swing.JScrollPane();
- m_suiteList = new javax.swing.JList();
- m_allButton = new javax.swing.JButton();
- m_executeButton = new javax.swing.JButton();
- m_resultScroll = new javax.swing.JScrollPane();
- m_resultTable = new javax.swing.JTable();
m_statusBar = new javax.swing.JPanel();
m_progress = new javax.swing.JProgressBar();
+ m_executeButton = new javax.swing.JButton();
+ m_allButton = new javax.swing.JButton();
+ m_suiteScroll = new javax.swing.JScrollPane();
+ m_suiteList = new javax.swing.JList();
+ m_resultScroll = new javax.swing.JScrollPane();
+ m_resultTable = new javax.swing.JTable();
m_executedResults = new javax.swing.JLabel();
+ txtSearchTest = new javax.swing.JTextField();
+ btnSearch = new javax.swing.JButton();
m_resultDialog.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- m_resultDialog.setMinimumSize(new java.awt.Dimension(320, 250));
+ m_resultDialog.setMinimumSize(new java.awt.Dimension(1024, 600));
m_resultDialog.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosed(java.awt.event.WindowEvent evt) {
onDialogClosed(evt);
}
+
public void windowClosing(java.awt.event.WindowEvent evt) {
onDialogClosed(evt);
}
@@ -195,72 +223,61 @@
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Junit Runner");
- setMinimumSize(new java.awt.Dimension(580, 580));
- getContentPane().setLayout(new java.awt.GridBagLayout());
+ setMinimumSize(null);
- m_panel.setMinimumSize(new java.awt.Dimension(580, 560));
- m_panel.setPreferredSize(new java.awt.Dimension(580, 566));
- m_panel.setLayout(new java.awt.GridBagLayout());
+ m_progress.setIndeterminate(true);
+ m_progress.setMinimumSize(null);
+ m_progress.setPreferredSize(null);
- m_suiteScroll.setAutoscrolls(true);
- m_suiteScroll.setMinimumSize(new java.awt.Dimension(400, 147));
- m_suiteScroll.setPreferredSize(new java.awt.Dimension(400, 147));
-
- m_suiteList.setModel(new TestListModel());
- m_suiteList.setMaximumSize(new java.awt.Dimension(250, 147));
- m_suiteList.setMinimumSize(new java.awt.Dimension(250, 147));
- m_suiteList.setPreferredSize(new java.awt.Dimension(250, 147));
- m_suiteScroll.setViewportView(m_suiteList);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.gridwidth = 4;
- gridBagConstraints.gridheight = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
- gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
- m_panel.add(m_suiteScroll, gridBagConstraints);
-
- m_allButton.setText("Select All");
- m_allButton.setMaximumSize(new java.awt.Dimension(90, 23));
- m_allButton.setMinimumSize(new java.awt.Dimension(90, 23));
- m_allButton.setPreferredSize(new java.awt.Dimension(90, 23));
- m_allButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- allButtonActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 4;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 0);
- m_panel.add(m_allButton, gridBagConstraints);
+ javax.swing.GroupLayout m_statusBarLayout = new javax.swing.GroupLayout(m_statusBar);
+ m_statusBar.setLayout(m_statusBarLayout);
+ m_statusBarLayout.setHorizontalGroup(
+ m_statusBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(m_progress, javax.swing.GroupLayout.DEFAULT_SIZE, 466, Short.MAX_VALUE)
+ );
+ m_statusBarLayout.setVerticalGroup(
+ m_statusBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(m_statusBarLayout.createSequentialGroup()
+ .addComponent(m_progress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
m_executeButton.setText("Execute");
m_executeButton.setMaximumSize(new java.awt.Dimension(90, 23));
m_executeButton.setMinimumSize(new java.awt.Dimension(90, 23));
- m_executeButton.setPreferredSize(new java.awt.Dimension(90, 23));
+ m_executeButton.setPreferredSize(new java.awt.Dimension(100, 23));
m_executeButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
executeButtonActionPerformed(evt);
}
});
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 4;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
- m_panel.add(m_executeButton, gridBagConstraints);
+
+ m_allButton.setText("Select All");
+ m_allButton.setMaximumSize(new java.awt.Dimension(90, 23));
+ m_allButton.setMinimumSize(new java.awt.Dimension(90, 23));
+ m_allButton.setPreferredSize(new java.awt.Dimension(100, 23));
+ m_allButton.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ allButtonActionPerformed(evt);
+ }
+ });
+
+ m_suiteScroll.setAutoscrolls(true);
+
+ m_suiteList.setModel(new TestListModel());
+ m_suiteList.setMaximumSize(null);
+ m_suiteList.setMinimumSize(null);
+ m_suiteList.setPreferredSize(null);
+ m_suiteScroll.setViewportView(m_suiteList);
m_resultScroll.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
- m_resultScroll.setMinimumSize(new java.awt.Dimension(452, 402));
- m_resultTable.setFont(new java.awt.Font("Tahoma", 0, 10));
+ m_resultTable.setAutoCreateRowSorter(true);
+ m_resultTable.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
m_resultTable.setModel(new ResultTableModel());
m_resultTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS);
- m_resultTable.setMaximumSize(new java.awt.Dimension(300, 400));
- m_resultTable.setMinimumSize(new java.awt.Dimension(300, 400));
+ m_resultTable.setMaximumSize(null);
+ m_resultTable.setMinimumSize(null);
m_resultTable.setPreferredSize(null);
m_resultTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
@@ -269,45 +286,76 @@
});
m_resultScroll.setViewportView(m_resultTable);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.gridwidth = 5;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(2, 3, 3, 3);
- m_panel.add(m_resultScroll, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.gridheight = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
- gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
- getContentPane().add(m_panel, gridBagConstraints);
-
- m_statusBar.setLayout(new javax.swing.BoxLayout(m_statusBar, javax.swing.BoxLayout.LINE_AXIS));
-
- m_progress.setIndeterminate(true);
- m_statusBar.add(m_progress);
-
m_executedResults.setText("aaaaaaaaaaaaaaa");
- m_statusBar.add(m_executedResults);
+ m_executedResults.setPreferredSize(null);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- getContentPane().add(m_statusBar, gridBagConstraints);
+ btnSearch.setText("Search");
+ btnSearch.setMaximumSize(new java.awt.Dimension(90, 23));
+ btnSearch.setMinimumSize(new java.awt.Dimension(90, 23));
+ btnSearch.setPreferredSize(new java.awt.Dimension(100, 23));
+ btnSearch.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ btnSearchActionPerformed(evt);
+ }
+ });
+
+ javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
+ getContentPane().setLayout(layout);
+ layout.setHorizontalGroup(
+ layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(m_resultScroll, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 598, Short.MAX_VALUE)
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(m_statusBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(m_executedResults, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(txtSearchTest, javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(m_suiteScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addComponent(m_executeButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(m_allButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(btnSearch, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
+ .addContainerGap())
+ );
+ layout.setVerticalGroup(
+ layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(txtSearchTest, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(btnSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(m_allButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(m_executeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(m_suiteScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(m_resultScroll, javax.swing.GroupLayout.PREFERRED_SIZE, 415, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(m_executedResults, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(m_statusBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ );
pack();
- } // </editor-fold>//GEN-END:initComponents
+ }// </editor-fold>//GEN-END:initComponents
+
/**
* Execute button action.
+ *
* @param evt : event.
*/
- private void executeButtonActionPerformed(java.awt.event.ActionEvent evt) { //GEN-FIRST:event_m_executeButtonActionPerformed
- if (m_running) { return; }
+ private void executeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_executeButtonActionPerformed
+ if (m_running) {
+ return;
+ }
// Collect selected test.
int[] indices = m_suiteList.getSelectedIndices();
List<Test> list = new ArrayList<Test>(indices.length);
@@ -317,26 +365,28 @@
}
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
executeTest(list);
- } //GEN-LAST:event_m_executeButtonActionPerformed
+ }//GEN-LAST:event_m_executeButtonActionPerformed
/**
* All button action.
+ *
* @param evt : event.
*/
- private void allButtonActionPerformed(java.awt.event.ActionEvent evt) { //GEN-FIRST:event_m_allButtonActionPerformed
+ private void allButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_allButtonActionPerformed
int max = m_suiteList.getModel().getSize();
int[] indices = new int[max];
for (int i = 0; i < max; i++) {
indices[i] = i;
}
m_suiteList.setSelectedIndices(indices);
- } //GEN-LAST:event_m_allButtonActionPerformed
+ }//GEN-LAST:event_m_allButtonActionPerformed
/**
* Listener on table click.
+ *
* @param evt : event.
*/
- private void resultTableMouseClicked(java.awt.event.MouseEvent evt) { //GEN-FIRST:event_m_resultTableMouseClicked
+ private void resultTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_resultTableMouseClicked
Point p = evt.getPoint();
int row = m_resultTable.rowAtPoint(p);
int col = m_resultTable.columnAtPoint(p);
@@ -348,28 +398,37 @@
m_messageArea.setText(message);
m_resultDialog.setVisible(true);
}
- } //GEN-LAST:event_m_resultTableMouseClicked
+ }//GEN-LAST:event_m_resultTableMouseClicked
/**
* Ok button action.
+ *
* @param evt : event.
*/
- private void okActionPerformed(java.awt.event.ActionEvent evt) { //GEN-FIRST:event_m_okActionPerformed
+ private void okActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_okActionPerformed
m_resultDialog.setVisible(false);
setEnabled(true);
- } //GEN-LAST:event_m_okActionPerformed
+ }//GEN-LAST:event_m_okActionPerformed
/**
* Listener when the test report is closed.
+ *
* @param evt : event.
*/
- private void onDialogClosed(java.awt.event.WindowEvent evt) { //GEN-FIRST:event_onDialogClosed
+ private void onDialogClosed(java.awt.event.WindowEvent evt) {
m_resultDialog.setVisible(false);
setEnabled(true);
- } //GEN-LAST:event_onDialogClosed
+ }
+
+
+ private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {
+ refreshSuites();
+
+ }
/**
* Execute method.
+ *
* @param list : list of test to execute.
*/
private void executeTest(final List<Test> list) {
@@ -397,7 +456,7 @@
};
new Thread(thread).start();
}
-
+
/**
* Compute executed tests.
* (Status bar message)
@@ -406,7 +465,7 @@
ResultTableModel results = (ResultTableModel) m_resultTable.getModel();
String m = " \t ";
m += results.getTestCount() + " tests executed / ";
- m += results.getSucess() + " sucess / ";
+ m += results.getSucess() + " success / ";
m += results.getFailures() + " failures / ";
m += results.getErrors() + " errors ";
m_executedResults.setText(m);
@@ -420,9 +479,10 @@
/**
* Add an error.
+ *
* @param arg0 : test which throws an error.
* @param arg1 : thrown exception.
- * @see junit.framework.TestListener#addError(junit.framework.Test, java.lang.Throwable)
+ * @see junit.framework.TestListener#addError(junit.framework.Test, Throwable)
*/
public void addError(Test arg0, Throwable arg1) {
m_model.addTest(arg0, arg1);
@@ -431,9 +491,10 @@
/**
* Add a failure.
+ *
* @param arg0 : failing test.
* @param arg1 : thrown failure.
- * @see junit.framework.TestListener#addError(junit.framework.Test, java.lang.Throwable)
+ * @see junit.framework.TestListener#addError(junit.framework.Test, Throwable)
*/
public void addFailure(Test arg0, AssertionFailedError arg1) {
m_model.addTest(arg0, arg1);
@@ -442,6 +503,7 @@
/**
* End of a test.
+ *
* @param arg0 : test.
* @see junit.framework.TestListener#endTest(junit.framework.Test)
*/
@@ -452,6 +514,7 @@
/**
* Start of a test.
+ *
* @param arg0 : test.
* @see junit.framework.TestListener#startTest(junit.framework.Test)
*/
@@ -471,13 +534,10 @@
}
- /**
- * Bundle Changed callback method.
- * @param arg0 : bundle event.
- * @see org.osgi.framework.BundleListener#bundleChanged(org.osgi.framework.BundleEvent)
- */
- public void bundleChanged(BundleEvent arg0) {
+
+ public void bundleChanged(BundleEvent bundleevent) {
refreshSuites();
+
}
-}
+}
\ No newline at end of file