'Junit Test Case for Stack Search(object o)
public synchronized int search(Object o) {
int i = lastIndexOf(o);
if (i > 0) {
return size() - i;
}
return -1;
}
}
What will be the Junit test case for this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
