Skip to content

Commit

Permalink
update Java version
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroupc committed Dec 20, 2024
1 parent caa9b81 commit 4612a07
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions src/test/java/com/upokecenter/test/CBORObjectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6281,7 +6281,7 @@ public void TestCalcEncodedSizeCircularRefs3bb() {
}

@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc() {
public void TestCalcEncodedSizeCircularRefs3bc0() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
cbor.Add(CBORObject.NewOrderedMap().Add("jkl", cbor), "test");
Expand All @@ -6294,6 +6294,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc1() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
cbor.Add("test", CBORObject.NewOrderedMap().Add("jkl", cbor));
try {
Expand All @@ -6305,6 +6309,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc2() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
cbor.Add(CBORObject.NewOrderedMap().Add(cbor, "jkl"), "test");
try {
Expand All @@ -6315,7 +6323,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
} catch (Exception ex) {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc2a() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
cbor.Add("test", CBORObject.NewOrderedMap().Add(cbor, "jkl"));
try {
Expand All @@ -6326,7 +6337,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
} catch (Exception ex) {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc3() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
{
Object objectTemp = CBORObject.NewOrderedMap().Add(cbor,
Expand All @@ -6343,7 +6357,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
} catch (Exception ex) {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc4() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
{
Object objectTemp = "test";
Expand All @@ -6359,7 +6376,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
} catch (Exception ex) {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc5() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
{
Object objectTemp = "test";
Expand All @@ -6375,7 +6395,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
} catch (Exception ex) {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc6() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
{
Object objectTemp = CBORObject.NewOrderedMap().Add("mno", 1).Add(cbor,
Expand All @@ -6391,7 +6414,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
} catch (Exception ex) {
Assert.fail(ex.toString());
throw new IllegalStateException("", ex);
}
}}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc7() {
CBORObject cbor;
// No circular refs
cbor = CBORObject.NewOrderedMap().Add(1, 2).Add(3, 4);
cbor.Add("test", CBORObject.NewOrderedMap());
Expand All @@ -6418,6 +6444,10 @@ public void TestCalcEncodedSizeCircularRefs3bc() {
if (!(cbor.CalcEncodedSize() > 2)) {
Assert.fail();
}
}
@Test(timeout = 10001)
public void TestCalcEncodedSizeCircularRefs3bc8() {
CBORObject cbor;
cbor = CBORObject.NewOrderedMap().Add("ghi", 2).Add("abc", 4);
{
Object objectTemp = "test";
Expand Down

0 comments on commit 4612a07

Please sign in to comment.