/sitebricks/src/test/java/com/google/sitebricks/binding/PropertyCacheTest.java

http://github.com/dhanji/sitebricks · Java · 21 lines · 13 code · 5 blank · 3 comment · 0 complexity · 453fa63e696f088ebc33e856148b5969 MD5 · raw file

  1. package com.google.sitebricks.binding;
  2. import org.testng.annotations.Test;
  3. /**
  4. * @author Dhanji R. Prasanna (dhanji@gmail.com)
  5. */
  6. public class PropertyCacheTest {
  7. @Test
  8. public final void doesPropertyExist() {
  9. assert new ConcurrentPropertyCache()
  10. .exists("name", MvelRequestBinderTest.AnObject.class);
  11. assert new ConcurrentPropertyCache()
  12. .exists("name", MvelRequestBinderTest.AnObject.class);
  13. assert !new ConcurrentPropertyCache()
  14. .exists("notExists", MvelRequestBinderTest.AnObject.class);
  15. }
  16. }