public class OsgiAcceptanceTest extends AbstractAcceptanceTest
rpc, testHelper, testName| Constructor and Description |
|---|
OsgiAcceptanceTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
readExpectedExports()
Read the expected list of system bundle
Export-Packages from a file, because it's huge. |
void |
testSystemBundleExports_missingExports()
Test that all the OSGi
Export-Packages we expect to provide from the system bundle are present. |
void |
testSystemBundleExports_unexpectedExports()
Test that no unexpected new OSGi
Export-Packages have appeared from the system bundle. |
commonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, userspublic static void readExpectedExports()
Export-Packages from a file, because it's huge.public void testSystemBundleExports_missingExports()
throws Exception
Export-Packages we expect to provide from the system bundle are present.
More info: https://extranet.atlassian.com/pages/viewpage.action?pageId=2624821660
Why test this? These exports form the base set of packages available for plugins to import, so plugins may have come to depend on them; removing exports can break plugins. They're constructed by auto-scanning confluence-core's dependencies at runtime, so we need to explicitly confirm any changes.
Exceptionpublic void testSystemBundleExports_unexpectedExports()
throws Exception
Export-Packages have appeared from the system bundle.
More info: https://extranet.atlassian.com/pages/viewpage.action?pageId=2624821660
Why test this? These exports form the base set of packages available for plugins to import; having the wrong things exported here can cause problems in resolving packages exported from other plugins; and they're constructed by auto-scanning confluence-core's dependencies at runtime, so we need to explicitly confirm any changes.
ExceptionCopyright © 2003–2018 Atlassian. All rights reserved.