Class MockEntityConverter<T extends org.springframework.data.domain.Persistable<Long>>

java.lang.Object
io.beanmapper.spring.web.mockmvc.MockEntityConverter<T>
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,T>

public class MockEntityConverter<T extends org.springframework.data.domain.Persistable<Long>> extends Object implements org.springframework.core.convert.converter.Converter<String,T>
  • Constructor Details

    • MockEntityConverter

      public MockEntityConverter(org.springframework.data.repository.CrudRepository<T,Long> respository)
  • Method Details

    • convert

      public T convert(String id)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,T extends org.springframework.data.domain.Persistable<Long>>