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-Package s from a file, because it's huge. |
void |
testSystemBundleExports_missingExports()
Test that all the OSGi
Export-Package s we expect to provide from the system bundle are present. |
void |
testSystemBundleExports_unexpectedExports()
Test that no unexpected new OSGi
Export-Package s have appeared from the system bundle. |
commonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, users
public static void readExpectedExports()
Export-Package
s from a file, because it's huge.public void testSystemBundleExports_missingExports() throws Exception
Export-Package
s 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.
Exception
public void testSystemBundleExports_unexpectedExports() throws Exception
Export-Package
s 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.
Exception
Copyright © 2003–2017 Atlassian. All rights reserved.