/*******************************************************************************
* Copyright (c) 2012, 2014 Tasktop Technologies 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:
* Tasktop Technologies - initial API and implementation
* Guy Perron 423242: Add ability to edit comment from compare navigator popup
*******************************************************************************/
package org.eclipse.mylyn.reviews.tests.ui;
import junit.framework.TestCase;
import org.eclipse.mylyn.reviews.tests.util.MockReviewBehavior;
import org.eclipse.mylyn.reviews.ui.ReviewBehavior;
import org.eclipse.mylyn.reviews.ui.ReviewUi;
import org.junit.Test;
/**
* @author Steffen Pingel
* @author Guy Perron
*/
public class ReviewUiTest extends TestCase {
@Test
public void testGetActiveReview() {
ReviewBehavior activeReview = new MockReviewBehavior();
ReviewUi.setActiveReview(activeReview);
assertEquals(activeReview, ReviewUi.getActiveReview());
}
}