Package com.googlecode.gwt.test.exceptions

Examples of com.googlecode.gwt.test.exceptions.GwtTestPatchException


         case 0:
            return null;
         case 1:
            return set.iterator().next();
         default:
            throw new GwtTestPatchException("Multiple constructors (" + set.size() + ") in class "
                     + ctClass.getName() + ", you have to set parameter types discriminators");
      }
   }
View Full Code Here


               }
            }
         }
      } catch (NotFoundException e) {
         // should never happen
         throw new GwtTestPatchException("Error while trying find a constructor in class '"
                  + ctClass.getName() + "'", e);
      }
   }
View Full Code Here

   public static CtClass getClass(String className) {
      try {
         return GwtClassPool.get().get(className);
      } catch (NotFoundException e) {
         throw new GwtTestPatchException("Cannot find class in the classpath : '" + className + "'");
      }
   }
View Full Code Here

      if (GwtFactory.get().getOverlayRewriter().isJsoIntf(clazz.getName())) {
         try {
            return EasyMock.createMock(Class.forName(JsValueGlue.JSO_IMPL_CLASS));
         } catch (ClassNotFoundException e) {
            // should never happen
            throw new GwtTestPatchException("Error while creating a mock with EasyMock for "
                     + clazz.getName(), e);
         }
      } else {
         return EasyMock.createMock(clazz);
      }
View Full Code Here

         if (method.getName().equals("getRows")) {
            return getRows((Element) args[0]);
         } else if (method.getName().equals("getCells")) {
            return getCells((Element) args[0]);
         } else {
            throw new GwtTestPatchException(
                     "Unhandled method '"
                              + method.getDeclaringClass().getName()
                              + "."
                              + method.getName()
                              + "' by the default gwt-test-utils GwtCreateHandler for HTMLTable.HTMLTableImpl subtypes");
View Full Code Here

         return null;
      }

      WithTokenizers withTokenizers = classLiteral.getAnnotation(WithTokenizers.class);
      if (withTokenizers == null) {
         throw new GwtTestPatchException(
                  "Error while trying to create an instance of "
                           + classLiteral.getName()
                           + " : gwt-test-utils default GwtCreateHandler for PlaceHistoryMapper is not currently able to create a valid implementation without relying on the @WithTokenizer annotation");
      }
View Full Code Here

      } catch (Exception e) {
         if (GwtTestException.class.isInstance(e)) {
            throw (GwtTestException) e;
         }

         throw new GwtTestPatchException(e);
      }

   }
View Full Code Here

         } catch (Exception e) {
            if (GwtTestException.class.isInstance(e)) {
               throw (GwtTestException) e;
            }

            throw new GwtTestPatchException("Error while patching class '" + classToPatch.getName()
                     + "'", e);
         }
      }
   }
View Full Code Here

         if (method.getName().equals("getPlace")) {
            return placeHistoryMapper.getPlace((String) args[0]);
         } else if (method.getName().equals("getToken")) {
            return placeHistoryMapper.getToken((Place) args[0]);
         } else {
            throw new GwtTestPatchException(
                     "Unhandled method '"
                              + method.getDeclaringClass().getName()
                              + "."
                              + method.getName()
                              + "' by the default gwt-test-utils GwtCreateHandler for PlaceHistoryMapper subtypes");
View Full Code Here

         if (rawType.getName().endsWith("Async")) {
            try {
               this.clazzToInstanciate = GwtReflectionUtils.getClass(rawType.getName().substring(0,
                        rawType.getName().length() - 5));
            } catch (ClassNotFoundException e) {
               throw new GwtTestPatchException(
                        "Error while trying to create a Guice provider for injector '"
                                 + ginInjectorClass.getName() + "'", e);
            }
         } else {
            this.clazzToInstanciate = rawType;
View Full Code Here

TOP

Related Classes of com.googlecode.gwt.test.exceptions.GwtTestPatchException

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.