Search in sources :

Example 6 with JVMParameterProvider

use of org.pentaho.platform.util.JVMParameterProvider in project pentaho-platform by pentaho.

the class MultipleComponentIT method testJVMParameterProviderDifferentPath2.

public void testJVMParameterProviderDifferentPath2() {
    startTest();
    JVMParameterProvider provider = new JVMParameterProvider();
    try {
        // $NON-NLS-1$
        Object parameterValue = provider.getDecimalParameter("bogus", null);
        // $NON-NLS-1$
        System.out.println("Paramater Value Received is " + parameterValue);
    } catch (Exception e) {
        e.printStackTrace();
        // $NON-NLS-1$
        assertTrue("Expected exception was caught", true);
    }
    finishTest();
}
Also used : JVMParameterProvider(org.pentaho.platform.util.JVMParameterProvider) SQLResultSetException(org.pentaho.platform.plugin.services.connections.sql.SQLResultSetException) InvalidParameterException(org.pentaho.platform.api.engine.InvalidParameterException) AuditException(org.pentaho.platform.api.engine.AuditException) ContentException(org.pentaho.platform.api.repository.ContentException) PentahoChainedException(org.pentaho.platform.api.util.PentahoChainedException) RepositoryException(org.pentaho.platform.api.repository.RepositoryException)

Aggregations

JVMParameterProvider (org.pentaho.platform.util.JVMParameterProvider)6 IParameterProvider (org.pentaho.platform.api.engine.IParameterProvider)3 SecurityParameterProvider (org.pentaho.platform.engine.security.SecurityParameterProvider)3 BigDecimal (java.math.BigDecimal)2 HashMap (java.util.HashMap)2 Date (java.util.Date)1 Iterator (java.util.Iterator)1 Matchers.anyString (org.mockito.Matchers.anyString)1 AuditException (org.pentaho.platform.api.engine.AuditException)1 InvalidParameterException (org.pentaho.platform.api.engine.InvalidParameterException)1 ContentException (org.pentaho.platform.api.repository.ContentException)1 RepositoryException (org.pentaho.platform.api.repository.RepositoryException)1 PentahoChainedException (org.pentaho.platform.api.util.PentahoChainedException)1 SQLResultSetException (org.pentaho.platform.plugin.services.connections.sql.SQLResultSetException)1