-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FitNesse architecture and comments.
- Loading branch information
Showing
17 changed files
with
371 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...cenarios/Section4Scenarios/DataTypeTestScenario/ElementParameterTestProcedure/content.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2013 European Space Agency | ||
# European Space Operations Centre | ||
# Darmstadt | ||
# Germany | ||
# ---------------------------------------------------------------------------- | ||
# System : CCSDS MO MAL Test bed | ||
# ---------------------------------------------------------------------------- | ||
# Licensed under the European Space Agency Public License, Version 2.0 | ||
# You may not use this file except in compliance with the License. | ||
# | ||
# Except as expressly set forth in this License, the Software is provided to | ||
# You on an "as is" basis and without warranties of any kind, including without | ||
# limitation merchantability, fitness for a particular purpose, absence of | ||
# defects or errors, accuracy or non-infringement of intellectual property rights. | ||
# | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ---------------------------------------------------------------------------- | ||
|
||
!*< Hidden | ||
!define TEST_SYSTEM {slim} | ||
|
||
|Import| | ||
|org.ccsds.moims.mo.mal.test.datatype| | ||
|
||
*! | ||
!4 Element parameter test procedure | ||
|
||
The test procedure does the following actions: | ||
1 Call the generic testData operation provided by the !-DataTest-! service provider with a statically defined value. | ||
2 Check that no error is raised by the provider, especially DATA_ERROR and BAD_ENCODING, meaning that the provider received the right value. | ||
3 Check the return value which must equal to the original value. | ||
|
||
The generic testData operation of the !-DataTest-! service is defined as: Element testData(Element). | ||
|
||
A list of MAL data structure instances is statically defined according to the following constraints: | ||
* All the data types shall be instantiated at least once. | ||
* Enumerations shall be instantiated once for each enumerated value. | ||
* Abstract types need to be extended by a concrete type for the test | ||
* The value Null shall belong to the list | ||
* The value Null shall be inserted into a Composite structure | ||
|
||
This data list is statically known by the !-DataTest-! service provider and consumer. | ||
The consumer takes the data from the list one by one, in the same order, and applies the test procedure. | ||
|
||
|script| data type scenario| | ||
|note| Element parameter test| | ||
|check| attribute types work| OK| | ||
|check| enumerations work| OK| | ||
|check| complete composites work | OK| | ||
|check| abstract composites work | OK| | ||
|check| lists work | OK| | ||
|check| nulls work|OK| | ||
|check| composites with null work| OK| | ||
|check| polymorphic types work | OK| |
11 changes: 11 additions & 0 deletions
11
...arios/Section4Scenarios/DataTypeTestScenario/ElementParameterTestProcedure/properties.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<properties> | ||
<Edit>true</Edit> | ||
<Files>true</Files> | ||
<Properties>true</Properties> | ||
<RecentChanges>true</RecentChanges> | ||
<Refactor>true</Refactor> | ||
<Search>true</Search> | ||
<Versions>true</Versions> | ||
<WhereUsed>true</WhereUsed> | ||
</properties> |
60 changes: 60 additions & 0 deletions
60
...stScenarios/Section4Scenarios/DataTypeTestScenario/ExplicitTypesTestProcedure/content.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2013 European Space Agency | ||
# European Space Operations Centre | ||
# Darmstadt | ||
# Germany | ||
# ---------------------------------------------------------------------------- | ||
# System : CCSDS MO MAL Test bed | ||
# ---------------------------------------------------------------------------- | ||
# Licensed under the European Space Agency Public License, Version 2.0 | ||
# You may not use this file except in compliance with the License. | ||
# | ||
# Except as expressly set forth in this License, the Software is provided to | ||
# You on an "as is" basis and without warranties of any kind, including without | ||
# limitation merchantability, fitness for a particular purpose, absence of | ||
# defects or errors, accuracy or non-infringement of intellectual property rights. | ||
# | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ---------------------------------------------------------------------------- | ||
|
||
!*< Hidden | ||
!define TEST_SYSTEM {slim} | ||
|
||
|Import| | ||
|org.ccsds.moims.mo.mal.test.datatype| | ||
|
||
*! | ||
!4 Explicit types test procedure | ||
|
||
The test procedure does the following actions: | ||
1 Call the proper data type operation provided by the !-DataTest-! service provider with a statically defined value. | ||
2 Check that no error is raised by the provider, especially DATA_ERROR and BAD_ENCODING, meaning that the provider received the right value. | ||
3 Check the return value which must equal to the original value. | ||
|
||
The test procedure is applied to all the MAL Attribute data types. | ||
|
||
The data values are statically known by the !-DataTest-! service provider and consumer. This allows the provider to check that the value he receives equals to the value sent by the consumer. | ||
The test operation of the !-DataTest-! service is specific to the tested type T. It is defined as: <T> testData<T>(<T>). | ||
|
||
|script| data type scenario| | ||
|note| Explicit types test| | ||
|check| explicit duration type works| OK| | ||
|check| explicit Fine Time type works| OK| | ||
|check| explicit Identifier type works| OK| | ||
|check| explicit Time type works| OK| | ||
|check| explicit URI type works| OK| | ||
|check| explicit Blob type works| OK| | ||
|check| explicit Boolean type works| OK| | ||
|check| explicit Octet type works| OK| | ||
|check| explicit Double type works| OK| | ||
|check| explicit Float type works| OK| | ||
|check| explicit Integer type works| OK| | ||
|check| explicit Long type works| OK| | ||
|check| explicit Short type works| OK| | ||
|check| explicit String type works| OK| | ||
|check| explicit UOctet type works| OK| | ||
|check| explicit UInteger type works| OK| | ||
|check| explicit ULong type works| OK| | ||
|check| explicit UShort type works| OK| | ||
|check| explicit Object Ref type works| OK| |
11 changes: 11 additions & 0 deletions
11
...cenarios/Section4Scenarios/DataTypeTestScenario/ExplicitTypesTestProcedure/properties.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<properties> | ||
<Edit>true</Edit> | ||
<Files>true</Files> | ||
<Properties>true</Properties> | ||
<RecentChanges>true</RecentChanges> | ||
<Refactor>true</Refactor> | ||
<Search>true</Search> | ||
<Versions>true</Versions> | ||
<WhereUsed>true</WhereUsed> | ||
</properties> |
38 changes: 38 additions & 0 deletions
38
...ts/TestScenarios/Section4Scenarios/DataTypeTestScenario/MoObjectTestProcedure/content.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2013 European Space Agency | ||
# European Space Operations Centre | ||
# Darmstadt | ||
# Germany | ||
# ---------------------------------------------------------------------------- | ||
# System : CCSDS MO MAL Test bed | ||
# ---------------------------------------------------------------------------- | ||
# Licensed under the European Space Agency Public License, Version 2.0 | ||
# You may not use this file except in compliance with the License. | ||
# | ||
# Except as expressly set forth in this License, the Software is provided to | ||
# You on an "as is" basis and without warranties of any kind, including without | ||
# limitation merchantability, fitness for a particular purpose, absence of | ||
# defects or errors, accuracy or non-infringement of intellectual property rights. | ||
# | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ---------------------------------------------------------------------------- | ||
|
||
!*< Hidden | ||
!define TEST_SYSTEM {slim} | ||
|
||
|Import| | ||
|org.ccsds.moims.mo.mal.test.datatype| | ||
|
||
*! | ||
!4 MO Object test procedure | ||
|
||
The test procedure does the following actions: | ||
1 Call the objectAssertionsAreChecked operation provided by the !-DataTest-! service provider. | ||
2 Let the provider check a list of assertions related to the MO Object concept. | ||
3 Check the return value which confirms the validation of those assertions. | ||
|
||
|
||
|script| data type scenario| | ||
|note| MO Object test| | ||
|check| object assertions are checked | OK| |
11 changes: 11 additions & 0 deletions
11
...TestScenarios/Section4Scenarios/DataTypeTestScenario/MoObjectTestProcedure/properties.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<properties> | ||
<Edit>true</Edit> | ||
<Files>true</Files> | ||
<Properties>true</Properties> | ||
<RecentChanges>true</RecentChanges> | ||
<Refactor>true</Refactor> | ||
<Search>true</Search> | ||
<Versions>true</Versions> | ||
<WhereUsed>true</WhereUsed> | ||
</properties> |
47 changes: 47 additions & 0 deletions
47
...TestScenarios/Section4Scenarios/DataTypeTestScenario/MultiReturnTestProcedure/content.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2013 European Space Agency | ||
# European Space Operations Centre | ||
# Darmstadt | ||
# Germany | ||
# ---------------------------------------------------------------------------- | ||
# System : CCSDS MO MAL Test bed | ||
# ---------------------------------------------------------------------------- | ||
# Licensed under the European Space Agency Public License, Version 2.0 | ||
# You may not use this file except in compliance with the License. | ||
# | ||
# Except as expressly set forth in this License, the Software is provided to | ||
# You on an "as is" basis and without warranties of any kind, including without | ||
# limitation merchantability, fitness for a particular purpose, absence of | ||
# defects or errors, accuracy or non-infringement of intellectual property rights. | ||
# | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ---------------------------------------------------------------------------- | ||
|
||
!*< Hidden | ||
!define TEST_SYSTEM {slim} | ||
|
||
|Import| | ||
|org.ccsds.moims.mo.mal.test.datatype| | ||
|
||
*! | ||
!4 Multi return test procedure | ||
|
||
The test procedure does the following actions: | ||
1 Call a specific operation provided by the !-DataTest-! service provider with a set of statically defined values. | ||
2 Check that no error is raised by the provider, especially DATA_ERROR and BAD_ENCODING, meaning that the provider received the right values. | ||
3 Check the return values which must equal to the original values. | ||
|
||
The test operation of the !-DataTest-! service declares 4 input parameters and 4 return parameters. The objective is not to test all data types, as this has already been done with the ExplicitTypesTestProcedure. The objective is to check various use cases when the data is not the single return parameter. A specific operation is defined for each use case as the type of the declared parameter is important. | ||
The tested use cases include: | ||
1 a set of explicitely defined types | ||
2 a set of parameters with the last one declared as Element | ||
3 a set of parameters with the 2nd and 3rd ones declared as Element | ||
4 a set of parameters including a NULL value | ||
|
||
|script| data type scenario| | ||
|note| Multi return test| | ||
|check| explicit multi return works| OK| | ||
|check| abstract multi return works | OK| | ||
|check| inner abstract multi return works | OK| | ||
|check| multi return with nulls work| OK| |
11 changes: 11 additions & 0 deletions
11
...tScenarios/Section4Scenarios/DataTypeTestScenario/MultiReturnTestProcedure/properties.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<properties> | ||
<Edit>true</Edit> | ||
<Files>true</Files> | ||
<Properties>true</Properties> | ||
<RecentChanges>true</RecentChanges> | ||
<Refactor>true</Refactor> | ||
<Search>true</Search> | ||
<Versions>true</Versions> | ||
<WhereUsed>true</WhereUsed> | ||
</properties> |
Oops, something went wrong.