Tabnine Logo
org.apache.shindig.expressions.jasper
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.shindig.expressions.jasper

Best Java code snippets using org.apache.shindig.expressions.jasper (Showing top 20 results out of 315)

origin: org.apache.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ExpressionProvider.class).to(JasperProvider.class)
    .in(Scopes.SINGLETON);
 }
}
origin: org.gatein.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ELTypeConverter.class).to(JasperTypeConverter.class).in(Scopes.SINGLETON);
 }
}
origin: org.apache.shindig/shindig-common

@Before
@Override
public void setUp() {
 super.setUp();
 expressions = new Expressions(null, null, new JasperTypeConverter(), new JasperProvider());
}
origin: org.gatein.shindig/shindig-common

@Ignore  
public void booleanCoercionOfNumbersFails() throws Exception {
 // These test cases will not pass with Jasper due to ELSupport exceptions
 // thrown when coercing Integer to Boolean
 addVariable("bool", 0);
 assertTrue(evaluate("${!bool}", Boolean.class));
 addVariable("bool", 1);
 assertFalse(evaluate("${!bool}", Boolean.class));
 evaluate("${true && 5}", String.class);
}

origin: com.lmco.shindig/shindig-common

@Before
@Override
public void setUp() {
 super.setUp();
 expressions = new Expressions(null, null, new JasperTypeConverter(), new JasperProvider());
}

origin: com.lmco.shindig/shindig-common

@Ignore  
public void booleanCoercionOfNumbersFails() throws Exception {
 // These test cases will not pass with Jasper due to ELSupport exceptions
 // thrown when coercing Integer to Boolean
 addVariable("bool", 0);
 assertTrue(evaluate("${!bool}", Boolean.class));
 addVariable("bool", 1);
 assertFalse(evaluate("${!bool}", Boolean.class));
 evaluate("${true && 5}", String.class);
}

origin: org.gatein.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ExpressionProvider.class).to(JasperProvider.class)
    .in(Scopes.SINGLETON);
 }
}
origin: org.apache.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ELTypeConverter.class).to(JasperTypeConverter.class).in(Scopes.SINGLETON);
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

@Before
@Override
public void setUp() {
 super.setUp();
 expressions = new Expressions(null, null, new JasperTypeConverter(), new JasperProvider());
}
origin: com.lmco.shindig/shindig-common

@Ignore
public void booleanCoercionOfStringsFails() throws Exception{
 // Case-sensitive coercion:  FALSE is true
 // Test fails because Jasper type conversion routines does not recognize FALSE.
 addVariable("bool", "FALSE");
 assertFalse(evaluate("${!bool}", Boolean.class));
 
 // Jasper cannot handle this
 addVariable("bool", "booga");
 assertFalse(evaluate("${!bool}", Boolean.class));
}

origin: org.wso2.org.apache.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ExpressionProvider.class).to(JasperProvider.class)
    .in(Scopes.SINGLETON);
 }
}
origin: com.lmco.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ELTypeConverter.class).to(JasperTypeConverter.class).in(Scopes.SINGLETON);
 }
}
origin: org.gatein.shindig/shindig-common

@Before
@Override
public void setUp() {
 super.setUp();
 expressions = new Expressions(null, null, new JasperTypeConverter(), new JasperProvider());
}

origin: org.gatein.shindig/shindig-common

@Ignore
public void booleanCoercionOfStringsFails() throws Exception{
 // Case-sensitive coercion:  FALSE is true
 // Test fails because Jasper type conversion routines does not recognize FALSE.
 addVariable("bool", "FALSE");
 assertFalse(evaluate("${!bool}", Boolean.class));
 
 // Jasper cannot handle this
 addVariable("bool", "booga");
 assertFalse(evaluate("${!bool}", Boolean.class));
}

origin: com.lmco.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ExpressionProvider.class).to(JasperProvider.class)
    .in(Scopes.SINGLETON);
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

 @Override
 protected void configure() {
  bind(ELTypeConverter.class).to(JasperTypeConverter.class).in(Scopes.SINGLETON);
 }
}
origin: apache/shindig

@Before
@Override
public void setUp() {
 super.setUp();
 expressions = new Expressions(null, null, new JasperTypeConverter(), new JasperProvider());
}
origin: org.apache.shindig/shindig-common

@Ignore
@Test
public void booleanCoercionOfNumbersFails() throws Exception {
 // These test cases will not pass with Jasper due to ELSupport exceptions
 // thrown when coercing Integer to Boolean
 addVariable("bool", 0);
 assertTrue(evaluate("${!bool}", Boolean.class));
 addVariable("bool", 1);
 assertFalse(evaluate("${!bool}", Boolean.class));
 evaluate("${true && 5}", String.class);
}
origin: apache/shindig

 @Override
 protected void configure() {
  bind(ExpressionProvider.class).to(JasperProvider.class)
    .in(Scopes.SINGLETON);
 }
}
origin: apache/shindig

 @Override
 protected void configure() {
  bind(ELTypeConverter.class).to(JasperTypeConverter.class).in(Scopes.SINGLETON);
 }
}
org.apache.shindig.expressions.jasper

Most used classes

  • JasperConversionModule
    Creates a module to supply a Jasper Type Converter
  • JasperExpressionsTest
  • JasperModule
    Creates a module to supply a Jasper Provider
  • JasperProvider
    A Provider for Jasper Expression processing
  • JasperTypeConverter
    Jasper Implementation of a ShindigTypeConverter
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now