Package br.com.caelum.vraptor.converter

Examples of br.com.caelum.vraptor.converter.LongConverter


  // OgnlRuntime.setPropertyAccessor(Set.class, new SetAccessor());
  // OgnlRuntime.setPropertyAccessor(Map.class, new MapAccessor());
  this.bundle = ResourceBundle.getBundle("messages");
  Ognl.setTypeConverter(context, new VRaptorConvertersAdapter(converters, bundle));
  when(converters.to(String.class)).thenReturn(new StringConverter());
    when(converters.to(Long.class)).thenReturn(new LongConverter());
   
    context.put("proxifier", new JavassistProxifier(new ReflectionInstanceCreator()));
  }
View Full Code Here


    context.put("nullHandler", new GenericNullHandler(removal));
    context.put("proxifier", proxifier);
   
    when(container.instanceFor(Converters.class)).thenReturn(converters);
    when(converters.to(String.class)).thenReturn(new StringConverter());
    when(converters.to(Long.class)).thenReturn(new LongConverter());
  }
View Full Code Here

  this.provider = getProvider();
  this.errors = new ArrayList<Message>();
  when(converters.existsFor(Long.class)).thenReturn(true);
  when(converters.existsFor(long.class)).thenReturn(true);
  when(converters.existsFor(String.class)).thenReturn(true);
  when(converters.to(Long.class)).thenReturn(new LongConverter());
  when(converters.to(long.class)).thenReturn(new PrimitiveLongConverter());
  when(converters.to(String.class)).thenReturn(new StringConverter());

  when(nameProvider.parameterNamesFor(any(AccessibleObject.class))).thenReturn(new String[0]);
View Full Code Here

  removal = new EmptyElementsRemoval();
  bundle = ResourceBundle.getBundle("messages");
 
  when(container.instanceFor(Converters.class)).thenReturn(converters);
  when(converters.to(Long.class)).thenReturn(new LongConverter());
  when(converters.to(String.class)).thenReturn(new StringConverter());
  when(container.instanceFor(EmptyElementsRemoval.class)).thenReturn(removal);
 
  this.myCat = new Cat();
  this.context = (OgnlContext) Ognl.createDefaultContext(myCat);
View Full Code Here

    iogi = createIogiInstance();
   
    when(converters.existsFor(Long.class)).thenReturn(true);
    when(converters.existsFor(long.class)).thenReturn(true);
    when(converters.existsFor(String.class)).thenReturn(true);
    when(converters.to(Long.class)).thenReturn(new LongConverter());
    when(converters.to(long.class)).thenReturn(new PrimitiveLongConverter());
    when(converters.to(String.class)).thenReturn(new StringConverter());
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.converter.LongConverter

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.