Shared Expectation Computation Library for Annotation-Based Compliance Testing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing compliance testing methods for annotation-based standards in JEE environments are inefficient, prone to errors, and require extensive knowledge of multiple standards, leading to inconsistent expectations and redundant computations.

Innovation Solution

A shared expectation computation library encapsulates annotation-based assertions, allowing compliance tests to derive expected values and compare them with actual values, reducing dependency on standards and tolerance for updates, and simplifying the testing process by centralizing expectation logic.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If compliance tests are implemented manually for annotation-based standards, then testing coverage can be achieved, but error rate increases and consistency decreases

Engineering Contradiction:
Improvecompliance test accuracyVSAvoidtesting system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

An expectation computation library is introduced as an intermediary component between the annotation-based standards and the compliance tests. This library encapsulates the standard assertions and provides standardized methods for computing expected values, thereby reducing errors and improving consistency without requiring complex manual testing logic in each test case.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent creates a standardized copy of expectation computation logic that can be reused across multiple compliance tests. Instead of manually implementing testing logic for each standard, the same computation library is copied and referenced by different tests, ensuring consistency and reducing errors while maintaining manageable complexity.

Inventive Principle:
Principle #26Copying

2Productivity

If multiple annotation-based standards are tested separately, then comprehensive coverage is achieved, but redundant computations increase and efficiency decreases

Engineering Contradiction:
Improvecompliance testing efficiencyVSAvoidcomputation time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The expectation computation library is designed to be universal and multi-functional, serving multiple compliance tests for different annotation-based standards through a single shared component. This eliminates redundant computations by providing a common foundation that all tests can utilize, thereby improving productivity without sacrificing comprehensive standard coverage.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent merges the expectation computation logic for multiple standards into a single unified library. By combining these functions into one shared resource, the system avoids repeating the same computations across different tests, reducing overall computation time and improving testing efficiency.

Inventive Principle:
Principle #5Merging (Combining)

3Adaptability or versatility

If compliance tests contain hard-coded expectation logic, then tests can be executed, but adaptability to standard updates decreases and maintenance difficulty increases

Engineering Contradiction:
Improvestandard update toleranceVSAvoidtest development ease
Core Design Contradiction:
Adaptability or versatilityVSEase of manufacture

Solution Approach 1:

The expectation computation library is designed to be dynamic and adaptable to standard updates. Rather than hard-coding expectations that become obsolete, the library can be updated to reflect new or changed standard assertions, automatically improving adaptability without requiring complete test rewriting.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent segments the compliance testing system into separate modular components: the annotation-based standards, the expectation computation library, and the compliance tests themselves. This segmentation allows the library to be updated independently to accommodate standard changes, improving adaptability while keeping test development straightforward through clear separation of concerns.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS8856745B2System and method for using a shared standard expectation computation library to implement compliance tests with annotation based standard
Publication Date: 2014.10.07 ORACLE INT CORP
  • US8856745B2 patent drawing
  • US8856745B2 patent drawing
  • US8856745B2 patent drawing

AI summary

A system and method can implement compliance tests with annotation based standards using a model library. The model library encapsulates expectation computation logic described in one or more annotation based assertions. A compliance test can obtain an actual value for one or more software properties based on evaluating a source file that contains one or more annotations that is defined by the one or more annotation based assertions, and can determine an expected value for the one or more software properties using the model library. Then, the compliance test can compare the actual value for the one or more software properties with the expected value for the one or more software properties.