def test_constructors_long_parameter_list(setup_ontology):
    onto = setup_ontology
    tree = javalang.parse.parse(CONSTRUCTOR_LONG_PARAMETER_LIST)
    individ_creator.populate_ontology(onto, tree)
    onto.save("testing.owl", format="rdfxml")
    get_ontology("file://testing.owl").load()
    graph = default_world.as_rdflib_graph()
    assert len(constructor_long_parameter_list(g=graph)) == 1
def test_large_class(setup_ontology):
    onto = setup_ontology
    tree = javalang.parse.parse(LARGE_CLASS)
    individ_creator.populate_ontology(onto, tree)
    onto.save("testing.owl", format="rdfxml")
    get_ontology("file://testing.owl").load()
    graph = default_world.as_rdflib_graph()
    assert len(large_classes(g=graph)) == 1
def test_constructor_with_switch(setup_ontology):
    onto = setup_ontology
    tree = javalang.parse.parse(CONSTRUCTOR_WITH_SWITCH)
    individ_creator.populate_ontology(onto, tree)
    onto.save("testing.owl", format="rdfxml")
    get_ontology("file://testing.owl").load()
    graph = default_world.as_rdflib_graph()
    assert len(constructor_with_switch(g=graph)) == 1
def test_long_constructor(setup_ontology):
    onto = setup_ontology
    tree = javalang.parse.parse(LONG_CONSTRUCTOR)
    individ_creator.populate_ontology(onto, tree)
    onto.save("testing.owl", format="rdfxml")
    get_ontology("file://testing.owl").load()
    graph = default_world.as_rdflib_graph()
    assert len(long_constructors(g=graph)) == 1