parent
							
								
									714ae2684c
								
							
						
					
					
						commit
						9b9df6a744
					
				|  | @ -1,5 +1,5 @@ | ||||||
| /* | /* | ||||||
|  * Copyright 2002-2015 the original author or authors. |  * Copyright 2002-2016 the original author or authors. | ||||||
|  * |  * | ||||||
|  * Licensed under the Apache License, Version 2.0 (the "License"); |  * Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  * you may not use this file except in compliance with the License. |  * you may not use this file except in compliance with the License. | ||||||
|  | @ -1763,6 +1763,14 @@ public abstract class AbstractPropertyAccessorTests { | ||||||
| 		assertEquals("val1", Spr10115Bean.prop1); | 		assertEquals("val1", Spr10115Bean.prop1); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	@Test | ||||||
|  | 	public void cornerSpr13837() { | ||||||
|  | 		Spr13837Bean target = new Spr13837Bean(); | ||||||
|  | 		AbstractPropertyAccessor accessor = createAccessor(target); | ||||||
|  | 		accessor.setPropertyValue("something", 42); | ||||||
|  | 		assertEquals(Integer.valueOf(42), target.something); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 	private Person createPerson(String name, String city, String country) { | 	private Person createPerson(String name, String city, String country) { | ||||||
| 		return new Person(name, new Address(city, country)); | 		return new Person(name, new Address(city, country)); | ||||||
|  | @ -2201,6 +2209,20 @@ public abstract class AbstractPropertyAccessorTests { | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	static class Spr13837Bean { | ||||||
|  | 
 | ||||||
|  | 		protected Integer something; | ||||||
|  | 
 | ||||||
|  | 		public Spr13837Bean setSomething(final Integer something) { | ||||||
|  | 			this.something = something; | ||||||
|  | 			return this; | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
|  | 		public Integer getSomething() { | ||||||
|  | 			return this.something; | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	@SuppressWarnings("serial") | 	@SuppressWarnings("serial") | ||||||
| 	public static class ReadOnlyMap<K, V> extends HashMap<K, V> { | 	public static class ReadOnlyMap<K, V> extends HashMap<K, V> { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue