Issue Details (XML | Word | Printable)

Key: XSTR-298
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Unassigned
Reporter: Guilherme Silveira
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XStream

Annotation @XStreamAlias is ignored for classes without any class level annotation

Created: 14/Apr/06 04:18 PM   Updated: 07/Aug/06 09:08 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2


 Description  « Hide
public static class House {
@XStreamAlias("total-number-of-rooms")
private int rooms;
protected House(int rooms) { this.rooms = rooms; }
public int getRooms() { return rooms; }
}

public void testAnnotationForFieldAliases() { Annotations.configureAliases(xstream, House.class); House house = new House(5); String expectedXml = "<com.thoughtworks.acceptance.annotations.AnnotationsTest-House>\n"+ " <total-number-of-rooms>5</total-number-of-rooms>\n" + "</com.thoughtworks.acceptance.annotations.AnnotationsTest-House>"; assertBothWays(house, expectedXml); }



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.