@Test public void testFunctionImportImpl() { EntitySetImpl entitySet = new EntitySetImpl.Builder().setName("MyEntitySetName").build(); FunctionImpl function = new FunctionImpl.Builder().build(); FunctionImportImpl functionImport = new FunctionImportImpl.Builder() .setEntitySet(entitySet) .setEntitySetName("MyEntitySetName") .setFunction(function) .setFunctionName("MyFunctionName") .setIncludeInServiceDocument(true) .setJavaClass(FunctionImportSample.class) .setName("MyFunctionImportName") .build(); assertEquals(entitySet, functionImport.getEntitySet()); assertEquals("MyEntitySetName", functionImport.getEntitySet().getName()); assertEquals(function, functionImport.getFunction()); assertTrue(functionImport.isIncludeInServiceDocument()); assertEquals(FunctionImportSample.class, functionImport.getJavaClass()); assertEquals("MyFunctionImportName", functionImport.getName()); }
private FunctionImportImpl(Builder builder) { this.name = builder.name; this.function = builder.function; this.entitySet = builder.entitySet; this.includeInServiceDocument = builder.includeInServiceDocument; this.javaClass = builder.javaClass; }
FunctionImportImpl implements FunctionImport { private FunctionImportImpl(Builder builder) { this.name = builder.name; this.function = builder.function; this.entitySet = builder.entitySet; this.includeInServiceDocument = builder.includeInServiceDocument; this.javaClass = builder.javaClass; } }
FunctionImportImpl implements FunctionImport { private FunctionImportImpl(Builder builder) { this.name = builder.name; this.function = builder.function; this.entitySet = builder.entitySet; this.includeInServiceDocument = builder.includeInServiceDocument; this.javaClass = builder.javaClass; } private  FunctionImportImpl(Builder builder); }
FunctionImportImpl implements FunctionImport { private FunctionImportImpl(Builder builder) { this.name = builder.name; this.function = builder.function; this.entitySet = builder.entitySet; this.includeInServiceDocument = builder.includeInServiceDocument; this.javaClass = builder.javaClass; } private  FunctionImportImpl(Builder builder); @Override String getName(); @Override Function getFunction(); @Override EntitySet getEntitySet(); @Override boolean isIncludeInServiceDocument(); @Override Class<?> getJavaClass(); }
FunctionImportImpl implements FunctionImport { private FunctionImportImpl(Builder builder) { this.name = builder.name; this.function = builder.function; this.entitySet = builder.entitySet; this.includeInServiceDocument = builder.includeInServiceDocument; this.javaClass = builder.javaClass; } private  FunctionImportImpl(Builder builder); @Override String getName(); @Override Function getFunction(); @Override EntitySet getEntitySet(); @Override boolean isIncludeInServiceDocument(); @Override Class<?> getJavaClass();  }