FileDocCategorySizeDatePackage
AbstractAppleMetaDataBoxTest.javaAPI Docmp4parser 1.0-RC-171009Wed Dec 19 20:10:22 GMT 2012com.coremedia.iso.boxes.apple

AbstractAppleMetaDataBoxTest

public class AbstractAppleMetaDataBoxTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public voidtestSetValue_9()

        class MyConcreteAppleMetaDataBox extends AbstractAppleMetaDataBox {

            public MyConcreteAppleMetaDataBox() {
                super("test");
                this.appleDataBox = new AppleDataBox();
                this.appleDataBox.setFlags(21);
                this.appleDataBox.setData(new byte[4]);
            }

        }

        MyConcreteAppleMetaDataBox myConcreteAppleMetaDataBox = new MyConcreteAppleMetaDataBox();
        myConcreteAppleMetaDataBox.setValue("9");
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        myConcreteAppleMetaDataBox.getBox(Channels.newChannel(baos));
        Assert.assertEquals("9", myConcreteAppleMetaDataBox.getValue());