Index

A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

T

test - package test
Provides classes for testing the application.
testAllZeroDimensions() - Method in class test.CalculatorTest
Tests that a parcel with no dimension throws an IllegalArgumentException.
testConvertFromEuro() - Method in class test.CurrencyTest
Tests the conversion of amounts from Euro.
testConvertLength() - Method in class test.MeasurementSystemTest
Tests the conversion of length between systems.
testConvertToDisplayString() - Method in class test.CurrencyTest
Tests the generation of the display string.
testConvertToDisplayString() - Method in class test.ErrorDisplayStateTest
Tests the generation of the display string.
testConvertToDisplayString() - Method in class test.MeasurementSystemTest
Tests the generation of the display string.
testConvertToEuro() - Method in class test.CurrencyTest
Tests the conversion of amounts to Euro.
testConvertWeight() - Method in class test.MeasurementSystemTest
Tests the conversion of weight between systems.
testDefaultValues() - Method in class test.SettingsManagerTest
Tests the default values of the settings.
testExceedMaxDimensions() - Method in class test.CalculatorTest
Tests that a parcel exceeding the maximum dimensions of 120x60x60 cm throws an IllegalArgumentException.
testExceedMaxGirth() - Method in class test.CalculatorTest
Tests that a parcel exceeding the girth limit is priced correctly.
testExceedMaxWeight() - Method in class test.CalculatorTest
Tests that a parcel exceeding the maximum weight of 31 kg throws an IllegalArgumentException.
testFloatingPointPrecisionForWeight() - Method in class test.CalculatorTest
Tests calculation precision for a weight that is very close to 10 kg boundary.
testFromDisplayString() - Method in class test.CurrencyTest
Tests finding a currency by its display string.
testFromDisplayString() - Method in class test.ErrorDisplayStateTest
Tests finding a state by its display string.
testFromDisplayString() - Method in class test.MeasurementSystemTest
Tests finding a measurement system by its display string.
testInvalidDisplayString() - Method in class test.CurrencyTest
Tests handling of invalid display strings.
testInvalidDisplayString() - Method in class test.ErrorDisplayStateTest
Tests handling of invalid display strings.
testLargeParcelRate() - Method in class test.CalculatorTest
Tests that a large parcel with dimensions up to 120x60x60 cm, a girth of up to 300 cm, and a weight up to 5 kg is correctly calculated to cost 5.89 EUR.
testListenerNotification() - Method in class test.SettingsManagerTest
Tests the notification of a listener when settings change.
testLoadDefaultShippingRules() - Method in class test.ShippingRuleLoaderTest
Tests that the default shipping rules (from hardcoded path) are loaded successfully.
testLoadShippingRulesFileNotFound() - Method in class test.ShippingRuleLoaderTest
Tests that an error is thrown when the shipping rules files cannot be found.
testLoadShippingRulesSuccessfully() - Method in class test.ShippingRuleLoaderTest
Tests that shipping rules are loaded correctly from a JSON file.
testLoadShippingRulesWithCorruptedJson() - Method in class test.ShippingRuleLoaderTest
Tests that a corrupted JSON file throws an exception (e.g.
testLoadShippingRulesWithDimensionsAndWeight() - Method in class test.ShippingRuleLoaderTest
Tests that all dimensions and weight limits are correctly loaded from the JSON file.
testLoadShippingRulesWithEmptyJson() - Method in class test.ShippingRuleLoaderTest
Tests that an empty JSON file throws an exception.
testMatches_InvalidPacket_DimensionsExceed() - Method in class test.ShippingRuleTest
Tests that a packet with dimensions that exceed the rule is correctly identified as not a match.
testMatches_InvalidPacket_GirthExceeds() - Method in class test.ShippingRuleTest
Tests that a packet with girth that exceeds the rule (with girth limit) is correctly identified as not a match.
testMatches_InvalidPacket_NullPacket() - Method in class test.ShippingRuleTest
Tests that a null-packet throws a NullPointerException.
testMatches_InvalidPacket_WeightExceeds() - Method in class test.ShippingRuleTest
Tests that a packet with weight that exceeds the rule is correctly identified as not a match.
testMatches_ValidLimitPacket_MatchesRule() - Method in class test.ShippingRuleTest
Tests that a packet with dimension and weight at the limit of the rule is correctly identified as a match.
testMatches_ValidPacket_MatchesRule() - Method in class test.ShippingRuleTest
Tests that a packet with dimensions and weight that are clearly below the rule is correctly identified as a match.
testMaxIntegerDimensions() - Method in class test.CalculatorTest
Tests that a parcel with maximum integer dimensions and weight does not crash the program.
testMediumParcelRate() - Method in class test.CalculatorTest
Tests that a medium parcel with dimensions up to 60x30x15 cm and up to 2 kg is correctly calculated to cost 4.39 EUR.
testMultipleListenersNotification() - Method in class test.SettingsManagerTest
Tests the notification of multiple listeners when settings change.
testNearLimitCombination() - Method in class test.CalculatorTest
Tests a parcel with near-limit dimensions and weight to ensure correct rule selection.
testNegativeDimensions() - Method in class test.CalculatorTest
Tests that a parcel with negative dimensions throws an IllegalArgumentException.
testNegativeWeight() - Method in class test.CalculatorTest
Tests that a parcel with negative weight throws an IllegalArgumentException.
testNullPacket() - Method in class test.CalculatorTest
Tests that a Null parcel throws an IllegalArgumentException.
testOneZeroDimension() - Method in class test.CalculatorTest
Tests that a parcel with only one null dimension throws an IllegalArgumentException.
testRandomPackets() - Method in class test.CalculatorRandomTest
Tests that 1000 random packets are correctly calculated based on the shipping rules.
testRotatedParcelRate() - Method in class test.CalculatorTest
Tests that a parcel that has to be rotated to fit the dimensions is priced correctly.
testSetAndGetCurrency() - Method in class test.SettingsManagerTest
Tests the setting and getting of the currency.
testSetAndGetErrorDisplayState() - Method in class test.SettingsManagerTest
Tests the setting and getting of the error display state.
testSetAndGetMeasurementSystem() - Method in class test.SettingsManagerTest
Tests the setting and getting of the measurement system.
testShippingRulesAreSortedByCost() - Method in class test.ShippingRuleLoaderTest
Tests that the rules are sorted by cost after loading (ascending order).
testSmallHeavyParcelRate() - Method in class test.CalculatorTest
Tests that small heavy parcel is priced correctly.
testSmallParcelRate() - Method in class test.CalculatorTest
Tests that a small parcel with dimensions up to 30x30x15 cm and up to 1 kg is correctly calculated to cost 3.89 EUR.
testXLParcelRate() - Method in class test.CalculatorTest
Tests that an extra-large parcel with dimensions up to 120x60x60 cm, a girth of up to 300 cm, and a weight up to 10 kg is correctly calculated to cost 7.99 EUR.
testXXLParcelRate() - Method in class test.CalculatorTest
Tests that an extra-extra-large parcel with dimensions up to 120x60x60 cm and a weight up to 31 kg is correctly calculated to cost 14.99 EUR.
TOOLBAR_EXIT_BUTTON_LABEL - Static variable in class ressources.Constants
 
TOOLBAR_INFO_BUTTON_LABEL - Static variable in class ressources.Constants
 
TOOLBAR_SETTINGS_BUTTON_LABEL - Static variable in class ressources.Constants
 
toolbarArea - Variable in class gui.PackageCalculator
The ToolbarArea class represents a section of the user interface that contains various tools and actions that can be performed.
ToolbarArea - Class in gui
The ToolbarArea class represents the toolbar of the application.
ToolbarArea() - Constructor for class gui.ToolbarArea
Constructor for the ToolbarArea.
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form