GenericPropertyUtil { public static Class<?> resolveCollectionType(Object bean, String name) throws IllegalArgumentException, IllegalStateException { return resolveType(bean, name, Collection.class, 0); }  static Class<?> resolveCollectionType(Object bean,
            String name); static Class<?> resolveType(Object bean, String name,
            Class<?> genericClass,
            int index);  }
@Test public void testResolveCollectionType01() throws Exception { try { GenericPropertyUtil.resolveCollectionType(null, null); fail("例外がスローされませんでした。"); } catch (IllegalArgumentException e) { assertEquals(IllegalArgumentException.class.getName(), e.getClass() .getName()); } }
@Test public void testResolveCollectionType02() throws Exception { try { GenericPropertyUtil.resolveCollectionType(new Object(), null); fail("例外がスローされませんでした。"); } catch (IllegalArgumentException e) { assertEquals(IllegalArgumentException.class.getName(), e.getClass() .getName()); } }
@Test public void testResolveCollectionType03() throws Exception { try { GenericPropertyUtil.resolveCollectionType(new Object(), ""); fail("例外がスローされませんでした。"); } catch (IllegalArgumentException e) { assertEquals(IllegalArgumentException.class.getName(), e.getClass() .getName()); } }
@Test public void testResolveCollectionType04() throws Exception { try { GenericPropertyUtil.resolveCollectionType(new Object(), " "); fail("例外がスローされませんでした。"); } catch (IllegalArgumentException e) { assertEquals(IllegalArgumentException.class.getName(), e.getClass() .getName()); } }
@Test public void testResolveCollectionType05() throws Exception { try { GenericPropertyUtil.resolveCollectionType( new GenericPropertyUtil_Stub01(), "list0"); fail("例外がスローされませんでした。"); } catch (IllegalArgumentException e) { assertEquals(IllegalArgumentException.class.getName(), e.getClass() .getName()); } }
@Test public void testResolveCollectionType06() throws Exception { Class<?> actual = GenericPropertyUtil.resolveCollectionType( new GenericPropertyUtil_Stub01(), "list1"); assertEquals(String.class, actual); }
@Test public void testResolveCollectionType07() throws Exception { Class<?> actual = GenericPropertyUtil.resolveCollectionType( new GenericPropertyUtil_Stub01(), "list2"); assertEquals(Map.class, actual); }
@Test public void testResolveCollectionType08() throws Exception { Class<?> actual = GenericPropertyUtil.resolveCollectionType( new GenericPropertyUtil_Stub01(), "list3"); assertEquals(String[].class, actual); }
@Test public void testResolveCollectionType09() throws Exception { try { GenericPropertyUtil.resolveCollectionType( new GenericPropertyUtil_Stub01(), "integer"); fail("例外がスローされませんでした。"); } catch (IllegalStateException e) { assertEquals(IllegalStateException.class.getName(), e.getClass() .getName()); } }
@Test public void testResolveCollectionType10() throws Exception { try { GenericPropertyUtil.resolveCollectionType( new GenericPropertyUtil_Stub01(), "object"); fail("例外がスローされませんでした。"); } catch (IllegalStateException e) { assertEquals(IllegalStateException.class.getName(), e.getClass() .getName()); } }
@Test public void testResolveCollectionType11() throws Exception { Class<?> actual = GenericPropertyUtil.resolveCollectionType( new GenericPropertyUtil_Stub01(), "list5"); assertEquals(Object.class, actual); }