Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Person properties plugin unit tests #6

Merged
merged 15 commits into from
Nov 24, 2022

Conversation

bischoffz
Copy link
Contributor

PersonPropertyInteractionReport

    public PersonPropertyInteractionReport(ReportId, ReportPeriod, PersonPropertyId[])
    public void PersonPropertyInteractionReport.init(ActorContext)

PersonPropertyReport

    public static PersonPropertyReport$Builder PersonPropertyReport.builder()
    public void PersonPropertyReport.init(ActorContext)

PersonPropertyReport$Builder

    public PersonPropertyReport PersonPropertyReport$Builder.build()
    public PersonPropertyReport$Builder PersonPropertyReport$Builder.setReportPeriod(ReportPeriod)
    public PersonPropertyReport$Builder PersonPropertyReport$Builder.excludePersonProperty(PersonPropertyId)
    public PersonPropertyReport$Builder PersonPropertyReport$Builder.setDefaultInclusion(boolean)
    public PersonPropertyReport$Builder PersonPropertyReport$Builder.includePersonProperty(PersonPropertyId)
    public PersonPropertyReport$Builder PersonPropertyReport$Builder.setReportId(ReportId)

PersonPropertyDefinitionEvent

    public PersonPropertyDefinitionEvent(PersonPropertyId)
    public PersonPropertyId PersonPropertyDefinitionEvent.getPersonPropertyId()

PersonPropertyDefinitionInitialization

    public static PersonPropertyDefinitionInitialization$Builder PersonPropertyDefinitionInitialization.builder()
    public List PersonPropertyDefinitionInitialization.getPropertyValues()
    public PersonPropertyId PersonPropertyDefinitionInitialization.getPersonPropertyId()
    public PropertyDefinition PersonPropertyDefinitionInitialization.getPropertyDefinition()

PersonPropertyDefinitionInitialization$Builder

    public PersonPropertyDefinitionInitialization PersonPropertyDefinitionInitialization$Builder.build()
    public PersonPropertyDefinitionInitialization$Builder PersonPropertyDefinitionInitialization$Builder.addPropertyValue(PersonId, Object)
    public PersonPropertyDefinitionInitialization$Builder PersonPropertyDefinitionInitialization$Builder.setPersonPropertyId(PersonPropertyId)
    public PersonPropertyDefinitionInitialization$Builder PersonPropertyDefinitionInitialization$Builder.setPropertyDefinition(PropertyDefinition)

PersonPropertyInitialization

    public boolean PersonPropertyInitialization.equals(Object)
    public String PersonPropertyInitialization.toString()
    public int PersonPropertyInitialization.hashCode()

PersonPropertyLabeler

    public Object PersonPropertyLabeler.getPastLabel(SimulationContext, Event)

PropertyFilter

    public String PropertyFilter.toString()

PersonPropertiesActionSupport

    public testPersonPropertiesActionSupport()
    public static void testPersonPropertiesActionSupport.testConsumer(int, long, Consumer)
    public static void testPersonPropertiesActionSupport.testConsumers(int, long, Plugin)

TestAuxiliaryPersonPropertyId

    public static testTestAuxiliaryPersonPropertyId # TestAuxiliaryPersonPropertyId.getRandomPersonPropertyId(RandomGenerator)
    public static PersonPropertyId testTestAuxiliaryPersonPropertyId.getUnknownPersonPropertyId()
    public PropertyDefinition testTestAuxiliaryPersonPropertyId.getPropertyDefinition()
    public Object testTestAuxiliaryPersonPropertyId.getRandomPropertyValue(RandomGenerator)

TestPersonPropertyId

    public static List testTestPersonPropertyId.getPropertiesWithoutDefaultValues()
    public static List testTestPersonPropertyId.getPropertiesWithDefaultValues()

@shawnhatch shawnhatch merged commit a076bdd into dev Nov 24, 2022
@shawnhatch shawnhatch deleted the person-properties-plugin-unit-tests branch November 24, 2022 01:53
@shawnhatch
Copy link
Contributor

Added missing unit tests for person properties plugin

bischoffz added a commit that referenced this pull request Mar 8, 2023
shawnhatch pushed a commit that referenced this pull request Mar 10, 2023
* initial impl of proj dir

* initial working input for global properties

* update to address maven warnings

* remove prototype proto

* make interface for common methods

* rename proto

* stochastics proto

* clean up

* update poms to work more cohesively

* stochastics plugin parsing complete

* slight refactor of getting a value

* clean up prototype classes

* fix project warning

* add interface for translator builders

* implement translatorBuilder interface
clean up adding default plugin descriptors

* parser should ignore unknown fields by default

* allow to change behavior towards unknown fields
and default values

* fix runtime error

* significant refactor

* clean up imports

* refactor to use context

* refactor to add parsing into lifecycle

* add a parser context

* update input json to match output json

* add support for writing output
refactor

* small change to exceptions

* implement focalBundle

* focal bundle

* initial impl of new design for bundle

* fix compile errors

* convert global propertier to new bundle

* convert stochastics bundle to new design

* remove depricated code

* remove depricated code

* add dependency support
add plugin bundle id
remove depricated code

* reorginization pass #1

* reorganization pass #2

* reorganization pass #3

* reorganization pass #4

* reorganization pass #5

* reorganization pass #6

* fix ide error... again
add suppress to generated files

* rename proto package

* add people plugin

* change dir name

* reorganization pass #7

* add groups-plugin

* fix bugs

* remove un-needed addition of resource

* update paths to be relative

* code clean up

* add support for enum within an any
add support for marker interfaces

* reorganize translators to be more in line with how a modler would use them

* add maven plugin to supproess warning in generated proto files

* update stochastics to use new design

* fix bug
slight refactor

* add translator for timetrackignpolicy and update propdef translator to use it
update path in propertiesPlugin

* refactor/reorg of master translator methods

* add back additions to map that caused propertiesPlugin to fail
rename write method

* refactor global properties to use new design
add globalPropId translator

* refactor to aid in actual reuse of PropDefMapInput and PropValMapInput

* remove translator that is no longer needed

* add globalpropIdinput

* change to better reflect actual use cases

* convert global properties to use standard plugindata for test

* convert people plugin to add check in app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants