blob: 5c4b6b9645214ae67084c35018f260e34847f2b7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2017 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
*
*******************************************************************************/
package org.eclipse.dltk.debug.dbgp.tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.eclipse.dltk.dbgp.IDbgpStatus;
import org.eclipse.dltk.dbgp.internal.DbgpStatus;
import org.junit.Test;
public class DbgpStatusTests {
@Test
public void testConstruction() {
IDbgpStatus s = DbgpStatus.parse("running", "ok");
assertTrue(s.isRunning());
assertTrue(s.reasonOk());
}
@Test
public void testEquals() {
IDbgpStatus a = DbgpStatus.parse("running", "ok");
IDbgpStatus b = DbgpStatus.parse("running", "ok");
assertEquals(a, b);
}
}