Here are the examples of the java api play.libs.F.Option.Some() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
18
Source : OptionTest.java
with MIT License
from vangav
with MIT License
from vangav
@Test(expected = ArrayStoreException.clreplaced)
public void throwArrayStoreException() {
F.Option<String> a = Option.Some("a");
a.toArray(new Integer[] {});
}
18
Source : OptionTest.java
with MIT License
from vangav
with MIT License
from vangav
@Test
public void testSomeToArray() {
F.Option<String> a = Option.Some("a");
replacedertThat(a.toArray()).isEqualTo(new Object[] { "a" });
replacedertThat(a.toArray(new String[] {})).isEqualTo(new String[] { "a" });
replacedertThat(a.toArray(new CharSequence[] {})).isEqualTo(new String[] { "a" });
String[] b = { null, "b", null, "c" };
replacedertThat(a.toArray(b)).isEqualTo(new String[] { "a", null, null, null });
}