Skip navigation links
C D O P S T 

C

com.btmatthews.maven.plugins.crx - package com.btmatthews.maven.plugins.crx
This package contains the unit tests for the Maven Mojo classes.

D

DATA - Static variable in class com.btmatthews.maven.plugins.crx.DummyArchive
Sampe data used for testing.
DummyArchive - Class in com.btmatthews.maven.plugins.crx
Dummy CRX archive object.
DummyArchive() - Constructor for class com.btmatthews.maven.plugins.crx.DummyArchive
Create a dummy CRX archive.

O

outputDirectory - Variable in class com.btmatthews.maven.plugins.crx.TestArchiveHelper
Temporary folder used for output.
outputDirectory - Variable in class com.btmatthews.maven.plugins.crx.TestArchiver
Temporary folder in which the generated .crx file will be created.
outputDirectory - Variable in class com.btmatthews.maven.plugins.crx.TestMojo
Temporary folder in which the generated .crx file is to be created.
outputDirectory - Variable in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Temporary directory used for output.

P

PRIVATE_KEY - Static variable in class com.btmatthews.maven.plugins.crx.DummyArchive
The private key used to generate the signature.
PUBLIC_KEY - Static variable in class com.btmatthews.maven.plugins.crx.DummyArchive
The public key used to verify the signature.

S

setUp() - Method in class com.btmatthews.maven.plugins.crx.TestArchiveHelper
Prepare for test case execution.
setUp() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Initialise the unit tests.
setUp() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Create the test fixtures including the CRX mojo and a mocked the Maven project model and Maven project helper.
setUp() - Method in class com.btmatthews.maven.plugins.crx.TestSignatureHelper
Prepare for the unit tests.
setUp() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Prepare for the unit test execution creating mock objects and configuring the CRXVerifyMojo.
SIGNATURE - Static variable in class com.btmatthews.maven.plugins.crx.DummyArchive
The expected signature for DATA.

T

TestArchive - Class in com.btmatthews.maven.plugins.crx
Unit tests to verify the behaviour of the CRXArchive class.
TestArchive() - Constructor for class com.btmatthews.maven.plugins.crx.TestArchive
 
testArchive() - Method in class com.btmatthews.maven.plugins.crx.TestArchive
Very simple test to verify the constructor of the CRXArchive class.
TestArchiveHelper - Class in com.btmatthews.maven.plugins.crx
Unit test CRXArchiveHelper.
TestArchiveHelper() - Constructor for class com.btmatthews.maven.plugins.crx.TestArchiveHelper
 
TestArchiver - Class in com.btmatthews.maven.plugins.crx
Unit test the CRXArchiver in isolation.
TestArchiver() - Constructor for class com.btmatthews.maven.plugins.crx.TestArchiver
 
testArchiver() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that a .crx file can be created without a pemPassword or classifier property.
testArchiverWhenArchiveHelperFails() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that an exception is raised when writing the archive failes.
testArchiverWhenFileAlreadyExists() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that the CRXMojo will overwrite an existing .crx file
testArchiverWhenPEMFileDoesNotExist() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that an exception is raised when trying to sign a .crx file with a nonexistent PEM file.
testArchiverWhenPEMFileIsCorrupted() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that an exception is raised when trying to sign a .crx file with a corrupted PEM file.
testArchiverWhenSignatureHelperFails() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that an exception is raised when the signing fails.
testArchiverWithChromePEM() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that a .crx file can be created without a pemPassword or classifier property using a PEM generated by Google Chrome.
testArchiverWithPasssword() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that a .crx file can be created with a pemPassword but without a classifier property.
testBlank() - Method in class com.btmatthews.maven.plugins.crx.TestParameterUtils
Verify that calling ParameterUtils.splitParameter(String) with a blank string returns null.
testCannotFindArchive() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Verify that the CRXVerifyMojo throws an MojoFailureException when the archive cannot be found.
testCheck() - Method in class com.btmatthews.maven.plugins.crx.TestSignatureHelper
testEmpty() - Method in class com.btmatthews.maven.plugins.crx.TestParameterUtils
Verify that calling ParameterUtils.splitParameter(String) with an empty string returns null.
testInvalidArchive() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Verify that the CRXVerifyMojo throws an MojoExecutionException when the archive is invalid.
testInvalidSignature() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Verify that the CRXVerifyMojo throws an MojoFailureException when the signature is invalid.
TestMojo - Class in com.btmatthews.maven.plugins.crx
Unit test the CRXMojo class.
TestMojo() - Constructor for class com.btmatthews.maven.plugins.crx.TestMojo
 
testMojo() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that a .crx file can be created without a pemPassword or classifier property.
testMojoFailsAfterArchiverException() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that CRXMojo will throw an MojoExecutionException when () throws an ArchiverException.
testMojoFailsAfterIOException() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that CRXMojo will throw an MojoExecutionException when Archiver.createArchive() throws an IOException.
testMojoFailsWithoutManifest() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that an exception is thrown if there is no manifest file in the source directory.
testMojoWithClassifier() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that a .crx file can be created without a classifier property.
testMojoWithFiltering() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that a .crx file can be created with file filtering enabled.
testMojoWithPasssword() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that a .crx file can be created with a pemPassword but without a classifier property.
testMultipleItems() - Method in class com.btmatthews.maven.plugins.crx.TestParameterUtils
Verify that calling ParameterUtils.splitParameter(String) when the parameter string has multiple items will return an string array with those items.
testMultipleItemsWithWhitespace() - Method in class com.btmatthews.maven.plugins.crx.TestParameterUtils
Verify that calling ParameterUtils.splitParameter(String) when the parameter string has multiple items and whitespace will return an string array with those items stripped of the leading and trailing whitespace.
testNull() - Method in class com.btmatthews.maven.plugins.crx.TestParameterUtils
Verify that calling ParameterUtils.splitParameter(String) with null returns null.
testOneItem() - Method in class com.btmatthews.maven.plugins.crx.TestParameterUtils
Verify that calling ParameterUtils.splitParameter(String) when the parameter string has a single item will return an string array with just that item.
TestParameterUtils - Class in com.btmatthews.maven.plugins.crx
Verify the behaviour of the ParameterUtils helper methods.
TestParameterUtils() - Constructor for class com.btmatthews.maven.plugins.crx.TestParameterUtils
 
testReadWrite() - Method in class com.btmatthews.maven.plugins.crx.TestArchiveHelper
Verify writing an archive and reading it back into memory.
testSign() - Method in class com.btmatthews.maven.plugins.crx.TestSignatureHelper
testSignatureCheckFailure() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Verify that the CRXVerifyMojo throws an MojoFailureException when the signature check fails.
TestSignatureHelper - Class in com.btmatthews.maven.plugins.crx
Unit tests for CRXSignatureHelper.
TestSignatureHelper() - Constructor for class com.btmatthews.maven.plugins.crx.TestSignatureHelper
 
testType() - Method in class com.btmatthews.maven.plugins.crx.TestArchiver
Verify that CRXArchiverImpl.getArchiveType() returns "crx".
testValidSignature() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Verify that the CRXVerifyMojo when the signature is valid.
testValidSignatureWithClassifier() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Verify that the CRXVerifyMojo when the signature is valid and a classifier has been specified.
testValidSignatureWithCRXPath() - Method in class com.btmatthews.maven.plugins.crx.TestVerifyMojo
Verify that the CRXVerifyMojo when the signature is valid and the crxPath parameter has been set.
TestVerifyMojo - Class in com.btmatthews.maven.plugins.crx
Unit test the CRXVerifyMojo which implements the crx-verify goal.
TestVerifyMojo() - Constructor for class com.btmatthews.maven.plugins.crx.TestVerifyMojo
 
testWithExcludes() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that the CRXMojo handles exclusion rules.
testWithIncludes() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that the CRXMojo handles inclusion rules.
testWithIncludesAndExcludes() - Method in class com.btmatthews.maven.plugins.crx.TestMojo
Verify that the CRXMojo handles inclusion and exclusion rules.
C D O P S T 
Skip navigation links

Copyright © 2012–2016 Brian Matthews. All rights reserved.