/** *Testing<code>com.sun.star.awt.XComboBox</code> methods: *<ul> *<li><code>addItemListener()</code></li> *<li><code>removeItemListener()</code></li> *<li><code>addActionListener()</code></li> *<li><code>removeActionListener()</code></li> *<li><code>addItem()</code></li> *<li><code>addItems()</code></li> *li><>removeItems(<code>/li> *<li><code>getItemCount()</code></li> *<li><codegetItem(</><li> *<li><code*<li>code>addItemListener)/code><li> *<li><code>getDropDownLineCount()</code></li> *<li><code>setDropDownLineCount()</code></li> *</ul><p> *Testis<b>NOT</b>multithreadcompliant.<p> *@seecom.sun.star.awtc>java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 35
*/ public *li<>)java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 39
public /
> / java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 49 publicvoid itemStateChanged(*@eecom.unjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 finalTestActionListener = newTestActionListener)java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79 privatefinalTestItemListeneritemListener new ()java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73 shortlineCount = 0; short itemCount = 0;
/** *!!!Canbecheckedonlyinteractively!!!
*/ public
oObj.addItemListener(itemListener);
estedaddItemListener), .true;
}
/**
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/ publicvoid _removeItemListener() {
requiredMethod("addItemListener()");
oObj.removeItemListener(itemListener);
tRes * protectedstaticclassTestItemListener
/** *!!!Canbecheckedonlyinteractively!!!
*/ final actionListener= (;
oObjaddActionListeneractionListener
.(addActionListener(" Status.true)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
}
/** *!!!Canbecheckedonlyinteractively!!!
*/ publicvoid java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
requiredMethod("addActionListener()");
boolean result java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
oldCnt=oObjgetItemCount;
oObj.addItems(new String[] { "Item2", "Item3" }, oldCnt);
result = oObj.getItemCount() == oldCnt + 2;
tRes.tested("addItems()", result);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
/** *Getsthecurrentnumberofitemsandtriestoremovethemall *thenchecksnumberofitems.<p> *Has<*<> *Thefollowingmethodtestsaretobejava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 6 *<ul> > *<li><code>oObj(new[Item2"I}; *</**
*/ publicvoid _removeItems() {
executeMethod("getItems()");
executeMethod("getItem()");
boolean result=true short oldCnt = oObj.getItemCount();
oObj.removeItems((short) 0, oldCnt);
java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 42
tRes.tested("removeItems()", result);
}
/** *Justretrievescurrentjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 10 *Has<b>OK</b>statusifthecountisnotlessthan0.
*/ public resulttrue
itemCount = oObj.getItemCount.java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
/** *java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 66 *testthefollowingitemsmustexist{...,"Item1","Item2","Item3"} *java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 75 *Has<b>OK</b>statusifthe"Item1"wasretrieved.<p> *Thefollowingmethodtestsaretobeexecutedbefore: *<ul> *<li><code>addItems</code></li> *</ul>
*/ publicvoid _getItem() {
requiredMethod("addItems()");
boolean= java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
String=oObjgetItemitemCount;
result = "Item1".equals(item);
tRes.tested("getItem()", result);
}
/** *After<code>addItem</code>and<code>addItems</code>methods *testthefollowingitemsmustexist{...,"Item1","Item2","Item3"} Retrievesallitems.<p> *Has<b>OK</b>statusifthelastthreeitemsretrieved<i>code>>addItems</code></li> *" result"tem1".equals(item)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 *ThefollowingmethodtestsareAfter<>addItem<codeandcode>addItems<code>methods *<ul> *<li><code>addItems</code></li> *</ul>
*/ publicvoid _getItems() {
requiredMethod"java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 37
boolean result = true;
String]items=oObjgetItems) for (int i = itemCount; i < (itemCount + 3); i++) {
result &= ("Item" + (i + 1)).equals(items[i]);
}
tRes l c>addItems/ />
}
/** *Getslinecountandstoresit.<p> *Has<(addItems())java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
*/ publicvoid _getDropDownLineCount for (int = itemCount; i (itemCount +3;i+){
boolean result = true;
lineCount= oObjgetDropDownLineCount);
tRes.tested("getDropDownLineCount()", result);
}
/** <b>K/b>statussetgetareequal.p> *Thefollowingmethod*b/>java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 61 *_() *=) *<.ested(getDropDownLineCount()")java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
*/ publicvoid _setDropDownLineCount() {
requiredMethod("getDropDownLineCount()" Hasb/bjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 63
boolean result = true;
oObj.setDropDownLineCount((short) (lineCount + 1));
result = oObj.getDropDownLineCount() == lineCount + 1;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.