| gui.propertyeditors.PropertyEditorsTest
All known Subclasses: gui.propertyeditors.PropertyType_ElementFormat, gui.propertyeditors.PropertyType_ExtensionList, gui.propertyeditors.PropertyType_double, gui.propertyeditors.PropertyType_FloatO, gui.propertyeditors.PropertyType_Rectangle, gui.propertyeditors.PropertyType_Font, gui.propertyeditors.PropertyType_String, gui.propertyeditors.PropertyType_NbClassPath, gui.propertyeditors.PropertyType_File, gui.propertyeditors.PropertyType_ByteO, gui.propertyeditors.PropertyType_Dimension, gui.propertyeditors.PropertyType_IdentifierArray, gui.propertyeditors.PropertyType_Integer, gui.propertyeditors.PropertyType_Character, gui.propertyeditors.PropertyType_Icon, gui.propertyeditors.PropertyType_StringArray, gui.propertyeditors.PropertyType_ServiceType, gui.propertyeditors.PropertyType_char, gui.propertyeditors.PropertyType_Insets, gui.propertyeditors.PropertyType_byte, gui.propertyeditors.PropertyType_int, gui.propertyeditors.PropertyType_Color, gui.propertyeditors.PropertyType_HTMLBrowser, gui.propertyeditors.PropertyType_NbProcessDescriptor, gui.propertyeditors.PropertyType_Point, gui.propertyeditors.PropertyType_DoubleO, gui.propertyeditors.PropertyType_IndentEngine, gui.propertyeditors.PropertyType_Properties, gui.propertyeditors.PropertyType_Type, gui.propertyeditors.PropertyType_short, gui.propertyeditors.PropertyType_BooleanO, gui.propertyeditors.PropertyType_boolean, gui.propertyeditors.PropertyType_ShortO, gui.propertyeditors.PropertyType_LongO, gui.propertyeditors.PropertyType_long, gui.propertyeditors.PropertyType_Executor, gui.propertyeditors.PropertyType_Class, gui.propertyeditors.PropertyType_Filesystem, gui.propertyeditors.PropertyType_URL, gui.propertyeditors.PropertyType_float,
PropertyEditorsTest | abstract public class PropertyEditorsTest extends JellyTestCase (Code) | | JellyTestCase test case with implemented Property Editors Test support stuff
author: mmirilovic@netbeans.org |
Method Summary | |
protected static void | failTest(Exception exc, String message) Print full stack trace to log files, get message and log to test results if test fails. | protected static Property | findProperty(String propertyName, NbDialogOperator propertiesWindow) Find Property in Property Sheet and return them. | public NbDialogOperator | getInformationDialog() | public NbDialogOperator | getPropertyCustomizer() Return Property Customizer. | public String | getValue(String propertyName) | public static NbDialogOperator | initializeWorkplace() Initialize Workplace. | public static void | makeIDEScreenshot(JellyTestCase testCase) | public static NbDialogOperator | openAndGetPropertyCustomizer(String propertyName) Open property customizer for property propertyName. | public static NbDialogOperator | reInitializeWorkplace() Reinitialize Workplace. | public void | setByCombo(String propertyName, String propertyValue, boolean expectance) Set value propertyValue of property propertyName by combobox, verify value with expectance. | public void | setByCombo(String propertyName, int propertyValueIndex, boolean expectance) Set indexed value propertyValueIndex of property propertyName by combobox, verify value with expectance. | public void | setByCustomizerCancel(String propertyName, boolean expectance) Open Property Customizer for propertyName, set value by customizer and press Cancel button, verify value with expectance. | public void | setByCustomizerOk(String propertyName, boolean expectance) Open Property Customizer for propertyName, set value by customizer and press Ok button, verify value with expectance. | public void | setByInPlace(String propertyName, String propertyValue, boolean expectance) Set value propertyValue of property propertyName by in-place, verify value with expectance. | abstract public void | setCustomizerValue() | public void | setUp() | public void | tearDown() | public void | verifyCustomizer(String propertyName) Verify customizer layout for property propertyName. | abstract public void | verifyCustomizerLayout() | public void | verifyExpectationValue(String propertyName, boolean expectation, String propertyValueExpectation, String propertyValue, boolean waitDialog) Verify exceptation value. | abstract public void | verifyPropertyValue(boolean expectation) |
propertiesWindow | protected static NbDialogOperator propertiesWindow(Code) | | |
propertyCustomizer | protected static NbDialogOperator propertyCustomizer(Code) | | |
propertyInitialValue | public String propertyInitialValue(Code) | | |
tableOperator | protected static JTableOperator tableOperator(Code) | | |
PropertyEditorsTest | public PropertyEditorsTest(String testName)(Code) | | Creates a new instance of PropertyEditorsTest
|
failTest | protected static void failTest(Exception exc, String message)(Code) | | Print full stack trace to log files, get message and log to test results if test fails.
Parameters: exc - Exception logged to description Parameters: message - written to test results |
findProperty | protected static Property findProperty(String propertyName, NbDialogOperator propertiesWindow)(Code) | | Find Property in Property Sheet and return them.
This is first hack for new Jelly2, because it isn't possible to set String Comparator only for one operator.
Parameters: propertyName - name of property Parameters: type - TextFieldProperty - textfield property, ComboBoxProperty - combobox property property by propertyName and type. |
getInformationDialog | public NbDialogOperator getInformationDialog()(Code) | | Return Informational dialog
Informational dialog |
getPropertyCustomizer | public NbDialogOperator getPropertyCustomizer()(Code) | | Return Property Customizer.
Property Customizer. |
getValue | public String getValue(String propertyName)(Code) | | Get value of property propertyName
Parameters: propertyName - name of property asked for value value of property |
initializeWorkplace | public static NbDialogOperator initializeWorkplace()(Code) | | Initialize Workplace.
|
makeIDEScreenshot | public static void makeIDEScreenshot(JellyTestCase testCase)(Code) | | Make IDE screenshot of whole IDE
Parameters: testCase - it is needed for locate destination directory of saving screenshot file |
openAndGetPropertyCustomizer | public static NbDialogOperator openAndGetPropertyCustomizer(String propertyName)(Code) | | Open property customizer for property propertyName.
Parameters: propertyName - name of property to be changed Property Customizer |
reInitializeWorkplace | public static NbDialogOperator reInitializeWorkplace()(Code) | | Reinitialize Workplace.
|
setByCombo | public void setByCombo(String propertyName, String propertyValue, boolean expectance)(Code) | | Set value propertyValue of property propertyName by combobox, verify value with expectance.
Parameters: propertyName - name of property to be changed Parameters: propertyValue - new value of property Parameters: expectance - true- new value must be the same as expected value, false-value needn't be the same as expected |
setByCombo | public void setByCombo(String propertyName, int propertyValueIndex, boolean expectance)(Code) | | Set indexed value propertyValueIndex of property propertyName by combobox, verify value with expectance.
Parameters: propertyName - name of property to be changed Parameters: propertyValueIndex - index of new value in combobox Parameters: expectance - true- new value must be the same as expected value, false-value needn't be the same as expected |
setByCustomizerCancel | public void setByCustomizerCancel(String propertyName, boolean expectance)(Code) | | Open Property Customizer for propertyName, set value by customizer and press Cancel button, verify value with expectance.
Parameters: propertyName - name of property to be customized Parameters: expectance - true- new value must be the same as expected value, false-value needn't be the same as expected |
setByCustomizerOk | public void setByCustomizerOk(String propertyName, boolean expectance)(Code) | | Open Property Customizer for propertyName, set value by customizer and press Ok button, verify value with expectance.
Parameters: propertyName - name of property to be customized Parameters: expectance - true- new value must be the same as expected value, false-value needn't be the same as expected |
setByInPlace | public void setByInPlace(String propertyName, String propertyValue, boolean expectance)(Code) | | Set value propertyValue of property propertyName by in-place, verify value with expectance.
Parameters: propertyName - name of property to be changed Parameters: propertyValue - new value of property Parameters: expectance - true- new value must be the same as expected value, false-value needn't be the same as expected |
setCustomizerValue | abstract public void setCustomizerValue()(Code) | | |
setUp | public void setUp()(Code) | | |
tearDown | public void tearDown()(Code) | | |
verifyCustomizer | public void verifyCustomizer(String propertyName)(Code) | | Verify customizer layout for property propertyName.
Parameters: propertyName - name of property to be changed |
verifyCustomizerLayout | abstract public void verifyCustomizerLayout()(Code) | | |
verifyExpectationValue | public void verifyExpectationValue(String propertyName, boolean expectation, String propertyValueExpectation, String propertyValue, boolean waitDialog)(Code) | | Verify exceptation value.
Parameters: propertyName - name of property Parameters: expectation - true - expected value must be the same as new value, false - expected value should not be the same Parameters: propertyValueExpectation - expected value Parameters: propertyValue - new value Parameters: waitDialog - true - after changing value Informational dialog about impissibility to set invalid value arise |
verifyPropertyValue | abstract public void verifyPropertyValue(boolean expectation)(Code) | | |
|
|