Package org.yaac.shared.property

Source Code of org.yaac.shared.property.BlobKeyPropertyInfoTest

package org.yaac.shared.property;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.yaac.server.util.AutoBeanUtil;
import org.yaac.shared.egql.ResultCell;

/**
* @author Max Zhu (thebbsky@gmail.com)
*
*/
public class BlobKeyPropertyInfoTest {
 
  @Test
  public void testEncodeDecode() {
    BlobKeyPropertyInfo blob = new BlobKeyPropertyInfo("key2");
   
    ResultCell cell = blob.populateResultCell(AutoBeanUtil.getResultCellFactory());
   
    assertEquals(blob, PropertyInfo.Builder.fromResultCell(cell));
  }
 
  @Test
  public void testAsExpression() {
    assertEquals("blobkey('abc')", new BlobKeyPropertyInfo("abc").asExpression(null))
  }
}
TOP

Related Classes of org.yaac.shared.property.BlobKeyPropertyInfoTest

TOP
Copyright © 2018 www.massapi.com. 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.