public abstract class AbstractDpkgTest extends Object
The abstract superclass of all tests.
| Constructor and Description |
|---|
AbstractDpkgTest() |
| Modifier and Type | Method and Description |
|---|---|
static net.sourceforge.javadpkg.control.impl.BinaryControlImpl |
createBinaryControl(String name,
String version,
String section,
String priority,
String architecture,
String dependencies,
Long installedSizeInKiloBytes,
String homepage,
String maintainer,
String description)
Creates a binary control.
|
static net.sourceforge.javadpkg.ChangeLogUrgency |
createChangeLogUrgency(String value)
Creates a change log urgency from the specified value.
|
static net.sourceforge.javadpkg.control.PackageMaintainer |
createPackageMaintainer(String value)
Creates a package maintainer from the specified value.
|
static net.sourceforge.javadpkg.control.PackageName |
createPackageName(String value)
Creates a package name from the specified value.
|
static net.sourceforge.javadpkg.control.PackageVersion |
createPackageVersion(String value)
Creates a package version from the specified value.
|
static net.sourceforge.javadpkg.io.DataSource |
createSource(int length,
String name)
Creates a source.
|
static net.sourceforge.javadpkg.io.DataSource |
createSource(List<String> lines,
String name)
Creates a source.
|
static net.sourceforge.javadpkg.io.DataSource |
createSource(String lines,
String name)
Creates a source.
|
void |
setUp()
Performs some preparations before each test is performed.
|
static void |
setUpBeforeClass()
Performs some preparations before all tests are performed.
|
void |
tearDown()
Performs some clean-up after each test is performed.
|
static void |
tearDownAfterClass()
Performs some clean-up after all tests have been performed.
|
public static void setUpBeforeClass()
throws Exception
Performs some preparations before all tests are performed.
Exception - If an error occurs.public static void tearDownAfterClass()
throws Exception
Performs some clean-up after all tests have been performed.
Exception - If an error occurs.public void setUp()
throws Exception
Performs some preparations before each test is performed.
Exception - If an error occurs.public void tearDown()
throws Exception
Performs some clean-up after each test is performed.
Exception - If an error occurs.public static net.sourceforge.javadpkg.io.DataSource createSource(int length,
String name)
Creates a source.
length - The length of the data.name - The name.public static net.sourceforge.javadpkg.io.DataSource createSource(String lines, String name)
Creates a source.
lines - The lines which will be available through the source.name - The name.public static net.sourceforge.javadpkg.io.DataSource createSource(List<String> lines, String name)
Creates a source.
lines - The lines which will be available through the source.name - The name.public static net.sourceforge.javadpkg.control.impl.BinaryControlImpl createBinaryControl(String name, String version, String section, String priority, String architecture, String dependencies, Long installedSizeInKiloBytes, String homepage, String maintainer, String description)
Creates a binary control.
name - The package name (mandatory).version - The version (mandatory).section - The section (recommended).priority - The priority (recommended).architecture - The architecture (mandatory).dependencies - The dependencies.installedSizeInKiloBytes - The installed size in kilobytes.homepage - The home-page.maintainer - The maintainer (mandatory).description - The description (mandatory).public static net.sourceforge.javadpkg.control.PackageName createPackageName(String value)
Creates a package name from the specified value.
value - The value.public static net.sourceforge.javadpkg.control.PackageVersion createPackageVersion(String value)
Creates a package version from the specified value.
value - The value.public static net.sourceforge.javadpkg.control.PackageMaintainer createPackageMaintainer(String value)
Creates a package maintainer from the specified value.
value - The value.public static net.sourceforge.javadpkg.ChangeLogUrgency createChangeLogUrgency(String value)
Creates a change log urgency from the specified value.
value - The value.Copyright © 2015–2019. All rights reserved.