@Test(expected = NullPointerException.class) public void testNullType(){ FileOptions fileOptions = new FileOptions.FileOptionsBuilder() .with(fo -> { fo.name = "myJsonTest.json"; fo.attributes = "{key1:val1, key2:val2}"; }) .build(); Assert.assertEquals("myJsonTest.json", fileOptions.getName()); }
public String getName() { return name; }
FileOptions { public String getName() { return name; } }
FileOptions { public String getName() { return name; } private  FileOptions(); }
FileOptions { public String getName() { return name; } private  FileOptions(); FileType getType(); String getName(); Map<String, String> getAttributes(); }
FileOptions { public String getName() { return name; } private  FileOptions(); FileType getType(); String getName(); Map<String, String> getAttributes();  }