Package org.soybeanMilk.core.bean

Examples of org.soybeanMilk.core.bean.Converter


  @Test
  public void convert_requestToTarget_hasConverter() throws Exception
  {
    final JavaBean bean=new JavaBean();
   
    converter.addConverter(HttpServletRequest.class, JavaBean.class, new Converter()
    {
      @SuppressWarnings("unchecked")
      public <T> T convert(Object sourceObj, Type targetType) throws ConvertException
      {
        return (T)bean;
View Full Code Here


  @Test
  public void convert_sessionToTarget_hasConverter() throws Exception
  {
    final JavaBean bean=new JavaBean();
   
    converter.addConverter(HttpSession.class, JavaBean.class, new Converter()
    {
      @SuppressWarnings("unchecked")
      public <T> T convert(Object sourceObj, Type targetType) throws ConvertException
      {
        return (T)bean;
View Full Code Here

  @Test
  public void convert_servletContextToTarget_hasConverter() throws Exception
  {
    final JavaBean bean=new JavaBean();
   
    converter.addConverter(ServletContext.class, JavaBean.class, new Converter()
    {
      @SuppressWarnings("unchecked")
      public <T> T convert(Object sourceObj, Type targetType) throws ConvertException
      {
        return (T)bean;
View Full Code Here

  @Test
  public void convert_responseToTarget_hasConverter() throws Exception
  {
    final JavaBean bean=new JavaBean();
   
    converter.addConverter(HttpServletResponse.class, JavaBean.class, new Converter()
    {
      @SuppressWarnings("unchecked")
      public <T> T convert(Object sourceObj, Type targetType) throws ConvertException
      {
        return (T)bean;
View Full Code Here

  @Test
  public void convert_objectSourceToTarget_hasConverter() throws Exception
  {
    final JavaBean bean=new JavaBean();
   
    converter.addConverter(WebObjectSource.class, JavaBean.class, new Converter()
    {
      @SuppressWarnings("unchecked")
      public <T> T convert(Object sourceObj, Type targetType) throws ConvertException
      {
        return (T)bean;
View Full Code Here

TOP

Related Classes of org.soybeanMilk.core.bean.Converter

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.