/* * BigBlueButton - http://www.bigbluebutton.org * * Copyright (c) 2008-2009 by respective authors (see below). All rights reserved. * * BigBlueButton is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * Foundation; either version 3 of the License, or (at your option) any later * version. * * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License along * with BigBlueButton; if not, If not, see <http://www.gnu.org/licenses/>. * * $Id: $ */ package org.bigbluebutton.deskshare.client.net; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.bigbluebutton.deskshare.common.Dimension; import org.testng.Assert; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class BlockStreamProtocolEncoderTest { @BeforeMethod public void setUp() { } @Test public void testEncodeFlvHeader() throws IOException { ByteArrayOutputStream data = new ByteArrayOutputStream(); data.reset(); // BlockStreamProtocolEncoder.encodeStartStreamMessage("testroom", new Dimension(64,64), new Dimension(32,32), data); // Assert.assertEquals(data.size(), 26); // BlockStreamProtocolEncoder.encodeHeaderAndLength(data); } }