forked from microsoft/copilot-for-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCopilotUiTests.java
More file actions
30 lines (21 loc) · 822 Bytes
/
Copy pathCopilotUiTests.java
File metadata and controls
30 lines (21 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package com.microsoft.copilot.eclipse.ui;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.jobs.Job;
import org.junit.jupiter.api.Test;
import org.osgi.framework.Bundle;
import com.microsoft.copilot.eclipse.core.CopilotCore;
class CopilotUiTests {
@Test
void testCopilotCoreWakeUp() throws Exception {
CopilotUi ui = new CopilotUi();
ui.start(null);
Job.getJobManager().join(CopilotCore.INIT_JOB_FAMILY, null);
Bundle bundle = Platform.getBundle("com.microsoft.copilot.eclipse.core");
assertNotNull(bundle);
assertEquals(Bundle.ACTIVE, bundle.getState());
}
}