Package org.springframework.data.solr.core.query

Examples of org.springframework.data.solr.core.query.SimpleCalculatedField


    Assert.assertThat(parser.createFunctionFragment(function, 0), Is.is("{!func}foo(FooBar [])"));
  }

  @Test
  public void testCreateFunctionFieldFragmentIgnoresBlankAlias() {
    SimpleCalculatedField ff = new SimpleCalculatedField(" ", new Foo(null));
    Assert.assertThat(parser.createCalculatedFieldFragment(ff), Is.is("{!func}foo()"));
  }
View Full Code Here


    Assert.assertThat(parser.createCalculatedFieldFragment(ff), Is.is("{!func}foo()"));
  }

  @Test
  public void testCreateFunctionFieldFragmentIgnoresNullAlias() {
    SimpleCalculatedField ff = new SimpleCalculatedField(null, new Foo(null));
    Assert.assertThat(parser.createCalculatedFieldFragment(ff), Is.is("{!func}foo()"));
  }
View Full Code Here

    Assert.assertThat(parser.createCalculatedFieldFragment(ff), Is.is("{!func}foo()"));
  }

  @Test
  public void testCreateFunctionFieldFragmentPrependsAliasCorrectly() {
    SimpleCalculatedField ff = new SimpleCalculatedField("alias", new Foo(null));
    Assert.assertThat(parser.createCalculatedFieldFragment(ff), Is.is("alias:{!func}foo()"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.query.SimpleCalculatedField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.