Search in sources :

Example 36 with PdxString

use of org.apache.geode.pdx.internal.PdxString in project geode by apache.

the class TypeUtilTest method comparingUnequivalentPdxStringToStringShouldNotMatch.

@Test
public void comparingUnequivalentPdxStringToStringShouldNotMatch() throws Exception {
    String theString = "MyString";
    PdxString pdxString = new PdxString("AnotherString");
    assertFalse((Boolean) TypeUtils.compare(pdxString, theString, OQLLexerTokenTypes.TOK_EQ));
    assertFalse((Boolean) TypeUtils.compare(theString, pdxString, OQLLexerTokenTypes.TOK_EQ));
}
Also used : PdxString(org.apache.geode.pdx.internal.PdxString) PdxString(org.apache.geode.pdx.internal.PdxString) UnitTest(org.apache.geode.test.junit.categories.UnitTest) Test(org.junit.Test)

Aggregations

PdxString (org.apache.geode.pdx.internal.PdxString)36 Test (org.junit.Test)22 Region (org.apache.geode.cache.Region)13 CacheException (org.apache.geode.cache.CacheException)11 CompactRangeIndex (org.apache.geode.cache.query.internal.index.CompactRangeIndex)11 RangeIndex (org.apache.geode.cache.query.internal.index.RangeIndex)11 SelectResults (org.apache.geode.cache.query.SelectResults)10 PortfolioPdx (org.apache.geode.cache.query.data.PortfolioPdx)10 Host (org.apache.geode.test.dunit.Host)10 VM (org.apache.geode.test.dunit.VM)10 DistributedTest (org.apache.geode.test.junit.categories.DistributedTest)10 IntegrationTest (org.apache.geode.test.junit.categories.IntegrationTest)10 QueryService (org.apache.geode.cache.query.QueryService)9 PdxInstance (org.apache.geode.pdx.PdxInstance)9 IOException (java.io.IOException)8 GemFireCacheImpl (org.apache.geode.internal.cache.GemFireCacheImpl)8 IgnoredException (org.apache.geode.test.dunit.IgnoredException)8 AttributesFactory (org.apache.geode.cache.AttributesFactory)7 PartitionAttributesFactory (org.apache.geode.cache.PartitionAttributesFactory)7 Index (org.apache.geode.cache.query.Index)7