It actually persists the objects.

On 2013-08-01 12:56, David Mason wrote:
> In zanata-war/src/test/java/org/zanata/tmx/TMXParserTest.java:
> 
>> +   {
>> +      TransMemoryDAO transMemoryDAO = seam.autowire(TransMemoryDAO.class);
>> +      TransMemory tm = new TransMemory();
>> +      tm.setSlug("new-tm");
>> +      tm.setDescription("New test tm");
>> +      transMemoryDAO.makePersistent(tm);
>> +
>> +      return parseAndSaveTMFromFile(tm, file);
>> +   }
>> +
>> +   private TransMemory parseAndSaveTMFromFile(TransMemory tm, String file) throws XMLStreamException
>> +   {
>> +      TMXParser parser = seam.autowire(TMXParser.class);
>> +      InputStream is = getClass().getResourceAsStream(file);
>> +
>> +      parser.parseAndSaveTMX(is, tm);
> 
> Does |parseAndSaveTMX| actually 'save' the TMX, or does it just put more
> data in |tm| without performing any saving?
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zanata/zanata-server/pull/78/files#r5521459>.
> 


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat