Skip to content

Commit d26dc6e

Browse files
committed
COH-31778 Update .NET client to not fill cluster node logs with unnecessary exceptions
[git-p4: depot-paths = "//dev/main.net/": change = 114496]
1 parent 56e3320 commit d26dc6e

File tree

119 files changed

+1721
-333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1721
-333
lines changed

tests/Coherence.Pof.Tests/LoadBalancerTests.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -14,6 +14,18 @@ namespace Tangosol.Data
1414
[TestFixture]
1515
public class LoadBalancerTests
1616
{
17+
[SetUp]
18+
public void SetUp()
19+
{
20+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
21+
}
22+
23+
[TearDown]
24+
public void TearDown()
25+
{
26+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
27+
}
28+
1729
[Test]
1830
public virtual void TestLoadBalancer()
1931
{

tests/Coherence.Pof.Tests/PofReferenceTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88

@@ -19,6 +19,18 @@ namespace Tangosol.Data
1919
[TestFixture]
2020
public class PofReferenceTests
2121
{
22+
[SetUp]
23+
public void SetUp()
24+
{
25+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
26+
}
27+
28+
[TearDown]
29+
public void TearDown()
30+
{
31+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
32+
}
33+
2234
/**
2335
* Test POF object with circular references.
2436
*/

tests/Coherence.Pof.Tests/PofStreamTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88
using System.IO;
@@ -26,6 +26,18 @@ private PofStreamReader InitPofReader(String typeName)
2626
return pofreader;
2727
}
2828

29+
[SetUp]
30+
public void SetUp()
31+
{
32+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
33+
}
34+
35+
[TearDown]
36+
public void TearDown()
37+
{
38+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
39+
}
40+
2941
/*
3042
* Not currently supported
3143

tests/Coherence.Tests/IO/DataReaderAndWriterTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88
using System.IO;
@@ -14,6 +14,18 @@ namespace Tangosol.IO
1414
[TestFixture]
1515
public class DataReaderAndWriterTests
1616
{
17+
[SetUp]
18+
public void SetUp()
19+
{
20+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
21+
}
22+
23+
[TearDown]
24+
public void TearDown()
25+
{
26+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
27+
}
28+
1729
[Test]
1830
public void TestPackedInt32()
1931
{

tests/Coherence.Tests/IO/IndentingWriterTests.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77

8+
using System;
89
using System.IO;
910

1011
using NUnit.Framework;
@@ -14,6 +15,18 @@ namespace Tangosol.IO
1415
[TestFixture]
1516
public class IndentingWriterTests
1617
{
18+
[SetUp]
19+
public void SetUp()
20+
{
21+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
22+
}
23+
24+
[TearDown]
25+
public void TearDown()
26+
{
27+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
28+
}
29+
1730
[Test]
1831
public void TestIndentingWriter()
1932
{

tests/Coherence.Tests/IO/Pof/Coh25103Tests.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
2-
* Copyright (c) 2022, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
66
*/
7+
8+
using System;
79
using System.IO;
810

911
using NUnit.Framework;
@@ -18,9 +20,16 @@ public class Coh25103Tests
1820
[SetUp]
1921
public void Setup()
2022
{
23+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
2124
m_pofContext = new ConfigurablePofContext("Config/include-pof-config.xml");
2225
}
2326

27+
[TearDown]
28+
public void TearDown()
29+
{
30+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
31+
}
32+
2433
[Test]
2534
public void TestCharString()
2635
{

tests/Coherence.Tests/IO/Pof/ConfigurablePofConfigTests.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -17,6 +17,18 @@ namespace Tangosol.IO.Pof
1717
[TestFixture]
1818
public class ConfigurablePofConfigTests
1919
{
20+
[SetUp]
21+
public void SetUp()
22+
{
23+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
24+
}
25+
26+
[TearDown]
27+
public void TearDown()
28+
{
29+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
30+
}
31+
2032
[Test]
2133
public void TestLocalMemberPof()
2234
{

tests/Coherence.Tests/IO/Pof/DataReaderAndWriterTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88
using System.IO;
@@ -14,6 +14,18 @@ namespace Tangosol.IO.Pof
1414
[TestFixture]
1515
public class DataReaderAndWriterTests
1616
{
17+
[SetUp]
18+
public void SetUp()
19+
{
20+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
21+
}
22+
23+
[TearDown]
24+
public void TearDown()
25+
{
26+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
27+
}
28+
1729
[Test]
1830
public void TestPackedInt32()
1931
{

tests/Coherence.Tests/IO/Pof/PofAnnotationSerializerTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88
using NUnit.Framework;
@@ -15,6 +15,18 @@ namespace Tangosol.IO.Pof
1515
[TestFixture]
1616
public class PofAnnotationSerializerTests
1717
{
18+
[SetUp]
19+
public void SetUp()
20+
{
21+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
22+
}
23+
24+
[TearDown]
25+
public void TearDown()
26+
{
27+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
28+
}
29+
1830
[Test]
1931
public void TestSerialization()
2032
{

tests/Coherence.Tests/IO/Pof/PofHelperEncodingTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88
using System.IO;
@@ -41,6 +41,18 @@ private void initPOFWriter()
4141
pofwriter = new PofStreamWriter(writer, new SimplePofContext());
4242
}
4343

44+
[SetUp]
45+
public void SetUp()
46+
{
47+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
48+
}
49+
50+
[TearDown]
51+
public void TearDown()
52+
{
53+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
54+
}
55+
4456
[Test]
4557
public void TestEncodeTinyInt()
4658
{ //PASSED

tests/Coherence.Tests/IO/Pof/PofHelperParsingTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88
using System.Collections;
@@ -42,6 +42,18 @@ private void initPOFWriter()
4242
pofwriter = new PofStreamWriter(writer, new SimplePofContext());
4343
}
4444

45+
[SetUp]
46+
public void SetUp()
47+
{
48+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
49+
}
50+
51+
[TearDown]
52+
public void TearDown()
53+
{
54+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
55+
}
56+
4557
[Test]
4658
public void TestDecodeTinyInt()
4759
{ //PASSED

tests/Coherence.Tests/IO/Pof/PofHelperTypeConversionTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88
using System.Collections;
@@ -17,6 +17,18 @@ namespace Tangosol.IO.Pof
1717
[TestFixture]
1818
public class PofHelperTypeConversionTests
1919
{
20+
[SetUp]
21+
public void SetUp()
22+
{
23+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
24+
}
25+
26+
[TearDown]
27+
public void TearDown()
28+
{
29+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
30+
}
31+
2032
[Test]
2133
public void TestDotNetTypeID()
2234
{

tests/Coherence.Tests/IO/Pof/PofHelperValidationTests.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
using System;
88

@@ -13,6 +13,18 @@ namespace Tangosol.IO.Pof
1313
[TestFixture]
1414
public class PofHelperValidationTests
1515
{
16+
[SetUp]
17+
public void SetUp()
18+
{
19+
TestContext.Error.WriteLine($"[START] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
20+
}
21+
22+
[TearDown]
23+
public void TearDown()
24+
{
25+
TestContext.Error.WriteLine($"[END] {DateTime.Now:yyyy-MM-dd HH:mm:ss.fff}: {TestContext.CurrentContext.Test.FullName}");
26+
}
27+
1628
[Test]
1729
public void TestCheckTypeWithException()
1830
{

0 commit comments

Comments
 (0)