Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.nakedobjects.plugins.xml.objectstore.internal.data;
 
 
 
public class ObjectDataTest extends TestCase {
    public static void main(final String[] args) {
        junit.textui.TestRunner.run(ObjectDataTest.class);
    }
    public void testValueField() {
        FileVersion.setClock(new TestClock());
        final TestSpecification type = new TestSpecification();
        final ObjectData objectData = new ObjectData(type, SerialOid.createPersistent(13), new FileVersion(""));
        assertEquals(nullobjectData.get("name"));
        objectData.set("name""value");
        assertEquals("value"objectData.get("name"));
        final Iterator<Stringe = objectData.fields().iterator();
        e.next();
        assertFalse(e.hasNext());
    }
// Copyright (c) Naked Objects Group Ltd.
New to GrepCode? Check out our FAQ X