30 |
|
|
31 |
graph = ff.swamp.impl.HashGraph() |
graph = ff.swamp.impl.HashGraph() |
32 |
|
|
33 |
ffinstance = ff.structure.Ff(graph, |
ffinstance = ff.structure.Ff.create(graph, |
34 |
alph.impl.StormAlph( |
alph.impl.StormAlph( |
35 |
storm.impl.TransientPool( |
storm.impl.TransientPool( |
36 |
java.util.HashSet()))) |
java.util.HashSet()))) |
51 |
node2 = ff.swamp.Nodes.get(ns.generateId()) |
node2 = ff.swamp.Nodes.get(ns.generateId()) |
52 |
|
|
53 |
def testPutGet(): |
def testPutGet(): |
54 |
ffinstance.set(node1, enf1) |
ffinstance.setContent(node1, enf1) |
55 |
assert fen.getContent(fen.constgraph,node1).equals(enf1) |
assert ffinstance.getContent(node1).equals(enf1) |
56 |
assert fen.getContent(fen.constgraph,node2).length() == 0 |
assert ffinstance.getContent(node2).length() == 0 |
57 |
|
|
58 |
snc.set(node1, enf2) |
ffinstance.setContent(node1, enf2) |
59 |
assert fen.getContent(fen.constgraph,node1).equals(enf2) |
assert ffinstance.getContent(node1).equals(enf2) |
60 |
assert fen.getContent(fen.constgraph,node2).length() == 0 |
assert ffinstance.getContent(node2).length() == 0 |
61 |
|
|
62 |
#def testWhat(): |
#def testWhat(): |
63 |
# snc.set(node1, enf1) |
# snc.set(node1, enf1) |