blob: a0236118c89132cbf26cc0a36f641f23a7d62c49 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.e4.languages.javascript.debug.connect.test;
import java.util.Collection;
import org.eclipse.e4.languages.javascript.debug.connect.DisconnectException;
import org.eclipse.e4.languages.javascript.debug.connect.Request;
import org.eclipse.e4.languages.javascript.debug.connect.Response;
import org.eclipse.e4.languages.javascript.debug.connect.TimeoutException;
public class RequestScriptsTest extends RequestTest {
public void testScriptsWithNoScripts() throws DisconnectException, TimeoutException {
Request request = new Request("scripts");
debugSession.sendRequest(request);
Response response = debugSession.receiveResponse(request.getSequence(), 30000);
assertTrue(response.isSuccess());
Collection scripts = (Collection) response.getBody().get("scripts");
assertNotNull(scripts);
assertTrue(scripts.isEmpty());
}
}