@Test( expected = KException.class ) public void shouldNotAllowEmptyJavaMethodIfNotSet() throws Exception { this.function.setJavaMethod( getTransaction(), StringConstants.EMPTY_STRING ); }
@Override public void setJavaMethod( final UnitOfWork transaction, final String newJavaMethod ) throws KException { setStatementOption( transaction, StandardOption.JAVA_METHOD.name(), newJavaMethod ); }
UserDefinedFunctionImpl extends FunctionImpl implements UserDefinedFunction { @Override public void setJavaMethod( final UnitOfWork transaction, final String newJavaMethod ) throws KException { setStatementOption( transaction, StandardOption.JAVA_METHOD.name(), newJavaMethod ); } }
UserDefinedFunctionImpl extends FunctionImpl implements UserDefinedFunction { @Override public void setJavaMethod( final UnitOfWork transaction, final String newJavaMethod ) throws KException { setStatementOption( transaction, StandardOption.JAVA_METHOD.name(), newJavaMethod ); } UserDefinedFunctionImpl( final UnitOfWork uow,
                                    final Repository repository,
                                    final String workspacePath ); }
UserDefinedFunctionImpl extends FunctionImpl implements UserDefinedFunction { @Override public void setJavaMethod( final UnitOfWork transaction, final String newJavaMethod ) throws KException { setStatementOption( transaction, StandardOption.JAVA_METHOD.name(), newJavaMethod ); } UserDefinedFunctionImpl( final UnitOfWork uow,
                                    final Repository repository,
                                    final String workspacePath ); @Override String getCategory( final UnitOfWork transaction ); @Override String getJavaClass( final UnitOfWork transaction ); @Override String getJavaMethod( final UnitOfWork transaction ); @Override Map< String, String > getStandardOptions(); @Override int getTypeId(); @Override KomodoType getTypeIdentifier( final UnitOfWork uow ); @Override Model getParent( final UnitOfWork transaction ); @Override boolean isStandardOption( final String name ); @Override void setCategory( final UnitOfWork transaction,
                             final String newCategory ); @Override void setJavaClass( final UnitOfWork transaction,
                              final String newJavaClass ); @Override void setJavaMethod( final UnitOfWork transaction,
                               final String newJavaMethod ); }
UserDefinedFunctionImpl extends FunctionImpl implements UserDefinedFunction { @Override public void setJavaMethod( final UnitOfWork transaction, final String newJavaMethod ) throws KException { setStatementOption( transaction, StandardOption.JAVA_METHOD.name(), newJavaMethod ); } UserDefinedFunctionImpl( final UnitOfWork uow,
                                    final Repository repository,
                                    final String workspacePath ); @Override String getCategory( final UnitOfWork transaction ); @Override String getJavaClass( final UnitOfWork transaction ); @Override String getJavaMethod( final UnitOfWork transaction ); @Override Map< String, String > getStandardOptions(); @Override int getTypeId(); @Override KomodoType getTypeIdentifier( final UnitOfWork uow ); @Override Model getParent( final UnitOfWork transaction ); @Override boolean isStandardOption( final String name ); @Override void setCategory( final UnitOfWork transaction,
                             final String newCategory ); @Override void setJavaClass( final UnitOfWork transaction,
                              final String newJavaClass ); @Override void setJavaMethod( final UnitOfWork transaction,
                               final String newJavaMethod );  }