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

Groups plugin unit tests #2

Merged
merged 45 commits into from
Nov 11, 2022
Merged

Groups plugin unit tests #2

merged 45 commits into from
Nov 11, 2022

Conversation

bischoffz
Copy link
Contributor

plugins.groups.GroupsPluginData

    public int GroupsPluginData.getPersonCount()

plugins.groups.actors.GroupPopulationReport

   public GroupPopulationReport(ReportId, ReportPeriod)

plugins.groups.actors.GroupPropertyReport

    public static GroupPropertyReport$Builder GroupPropertyReport.builder()

plugins.groups.datamanagers.GroupsDataManager

    public int GroupsDataManager.getGroupCountForGroupTypeAndPerson(GroupTypeId, PersonId)

plugins.groups.events.GroupPropertyDefinitionEvent

    public GroupPropertyDefinitionEvent(GroupTypeId, GroupPropertyId)
    public GroupTypeId GroupPropertyDefinitionEvent.getGroupTypeId()
    public GroupPropertyId GroupPropertyDefinitionEvent.getGroupPropertyId()

plugins.groups.events.GroupTypeAdditionEvent

    public GroupTypeAdditionEvent(GroupTypeId)
    public GroupTypeId GroupTypeAdditionEvent.getGroupTypeId()

plugins.groups.support.GroupLabeler

    public Object GroupLabeler.getPastLabel(SimulationContext, Event)

plugins.groups.support.GroupMemberFilter

    public void GroupMemberFilter.validate(SimulationContext)

plugins.groups.support.GroupPropertyDefinitionInitialization

    public static GroupPropertyDefinitionInitialization$Builder GroupPropertyDefinitionInitialization.builder()
    public PropertyDefinition GroupPropertyDefinitionInitialization.getPropertyDefinition()
    public GroupTypeId GroupPropertyDefinitionInitialization.getGroupTypeId()
    public GroupPropertyId GroupPropertyDefinitionInitialization.getPropertyId()
    public List GroupPropertyDefinitionInitialization.getPropertyValues()

plugins.groups.support.GroupPropertyDefinitionInitialization$Builder

    public GroupPropertyDefinitionInitialization GroupPropertyDefinitionInitialization$Builder.build()
    public GroupPropertyDefinitionInitialization$Builder GroupPropertyDefinitionInitialization$Builder.setPropertyDefinition(PropertyDefinition)
    public GroupPropertyDefinitionInitialization$Builder GroupPropertyDefinitionInitialization$Builder.setGroupTypeId(GroupTypeId)
    public GroupPropertyDefinitionInitialization$Builder GroupPropertyDefinitionInitialization$Builder.addPropertyValue(GroupId, Object)
    public GroupPropertyDefinitionInitialization$Builder GroupPropertyDefinitionInitialization$Builder.setPropertyId(GroupPropertyId)

plugins.groups.support.GroupPropertyValue

    public GroupPropertyValue(GroupPropertyId, Object)
    public Object GroupPropertyValue.value()
    public final boolean GroupPropertyValue.equals(Object)
    public final String GroupPropertyValue.toString()
    public final int GroupPropertyValue.hashCode()
    public GroupPropertyId GroupPropertyValue.groupPropertyId()

plugins.groups.support.GroupSampler$Builder

    public GroupSampler GroupSampler$Builder.build()
    public GroupSampler$Builder GroupSampler$Builder.setRandomNumberGeneratorId(RandomNumberGeneratorId)
    public GroupSampler$Builder GroupSampler$Builder.setGroupWeightingFunction(GroupWeightingFunction)
    public GroupSampler$Builder GroupSampler$Builder.setExcludedPersonId(PersonId)

plugins.groups.support.GroupTypeCountMap$Builder

    public GroupTypeCountMap GroupTypeCountMap$Builder.build()
    public GroupTypeCountMap$Builder GroupTypeCountMap$Builder.setCount(GroupTypeId,int)

plugins.groups.support.GroupsForPersonAndGroupTypeFilter

    public void GroupsForPersonAndGroupTypeFilter.validate(SimulationContext)

plugins.groups.testsupport.TestAuxiliaryGroupPropertyId

    public PropertyDefinition TestAuxiliaryGroupPropertyId.getPropertyDefinition()
    public Object TestAuxiliaryGroupPropertyId.getRandomPropertyValue(RandomGenerator)
    public TestAuxiliaryGroupTypeId TestAuxiliaryGroupPropertyId.getTestGroupTypeId()
    public static GroupPropertyId TestAuxiliaryGroupPropertyId.getUnknownGroupPropertyId()
    public static Set TestAuxiliaryGroupPropertyId.getTestGroupPropertyIds(TestAuxiliaryGroupTypeId)

plugins.groups.testsupport.TestAuxiliaryGroupTypeId

    public static int TestAuxiliaryGroupTypeId.size()
    public TestAuxiliaryGroupTypeId TestAuxiliaryGroupTypeId.next()
    public static TestAuxiliaryGroupTypeId TestAuxiliaryGroupTypeId.getRandomGroupTypeId(RandomGenerator)
    public static GroupTypeId pTestAuxiliaryGroupTypeId.getUnknownGroupTypeId()

@shawnhatch shawnhatch merged commit 37a5507 into dev Nov 11, 2022
@bischoffz bischoffz deleted the groups-plugin-unit-tests branch November 21, 2022 18:28
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.

None yet

2 participants