Package honeycrm.server

Examples of honeycrm.server.CachingReflectionHelper


public class ReflectionHelperTest extends TestCase {
  private CachingReflectionHelper r;
 
  @Override
  protected void setUp() throws Exception {
    r = new CachingReflectionHelper();
  }
View Full Code Here


public class RelatesToTest extends TestCase {
  public void testRelatesToIsSet() {
    try {
      boolean failed = false;

      final ReflectionHelper reflectionHelper = new CachingReflectionHelper();

      for (final Class<? extends AbstractEntity> clazz : ReflectionHelper.getClasses("honeycrm.server.domain")) {
        if (Modifier.isAbstract(clazz.getModifiers())) {
          continue;
        }

        for (final Field field : reflectionHelper.getAllFields(clazz)) {
          final boolean isLong = Long.class.equals(field.getType()) || long.class.equals(field.getType());
          final boolean hasCorrectName = field.getName().toLowerCase().contains("id");
          final boolean isAnnotated = field.isAnnotationPresent(FieldRelateAnnotation.class);

          if (isLong && hasCorrectName && !isAnnotated) {
View Full Code Here

TOP

Related Classes of honeycrm.server.CachingReflectionHelper

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.