Skip to content

Commit 787e282

Browse files
committed
SWEEP: Lucene.Net.Tests/Util/JunitCompat: Replaced tab indentation with spaces
1 parent 75c3a99 commit 787e282

18 files changed

Lines changed: 1642 additions & 1642 deletions
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
namespace Lucene.Net.Util.JunitCompat
22
{
33

4-
/*
5-
* Licensed to the Apache Software Foundation (ASF) under one or more
6-
* contributor license agreements. See the NOTICE file distributed with
7-
* this work for additional information regarding copyright ownership.
8-
* The ASF licenses this file to You under the Apache License, Version 2.0
9-
* (the "License"); you may not use this file except in compliance with
10-
* the License. You may obtain a copy of the License at
11-
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
13-
*
14-
* Unless required by applicable law or agreed to in writing, software
15-
* distributed under the License is distributed on an "AS IS" BASIS,
16-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* See the License for the specific language governing permissions and
18-
* limitations under the License.
19-
*/
4+
/*
5+
* Licensed to the Apache Software Foundation (ASF) under one or more
6+
* contributor license agreements. See the NOTICE file distributed with
7+
* this work for additional information regarding copyright ownership.
8+
* The ASF licenses this file to You under the Apache License, Version 2.0
9+
* (the "License"); you may not use this file except in compliance with
10+
* the License. You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/
2020

21-
/// <summary>
22-
/// A pointcut-like definition where we should trigger
23-
/// an assumption or error.
24-
/// </summary>
25-
public enum SorePoint
26-
{
27-
// STATIC_INITIALIZER, // I assume this will result in JUnit failure to load a suite.
28-
BEFORE_CLASS,
29-
INITIALIZER,
30-
RULE,
31-
BEFORE,
32-
TEST,
33-
AFTER,
34-
AFTER_CLASS
35-
}
21+
/// <summary>
22+
/// A pointcut-like definition where we should trigger
23+
/// an assumption or error.
24+
/// </summary>
25+
public enum SorePoint
26+
{
27+
// STATIC_INITIALIZER, // I assume this will result in JUnit failure to load a suite.
28+
BEFORE_CLASS,
29+
INITIALIZER,
30+
RULE,
31+
BEFORE,
32+
TEST,
33+
AFTER,
34+
AFTER_CLASS
35+
}
3636
}
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
namespace Lucene.Net.Util.JunitCompat
22
{
33

4-
/*
5-
* Licensed to the Apache Software Foundation (ASF) under one or more
6-
* contributor license agreements. See the NOTICE file distributed with
7-
* this work for additional information regarding copyright ownership.
8-
* The ASF licenses this file to You under the Apache License, Version 2.0
9-
* (the "License"); you may not use this file except in compliance with
10-
* the License. You may obtain a copy of the License at
11-
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
13-
*
14-
* Unless required by applicable law or agreed to in writing, software
15-
* distributed under the License is distributed on an "AS IS" BASIS,
16-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* See the License for the specific language governing permissions and
18-
* limitations under the License.
19-
*/
4+
/*
5+
* Licensed to the Apache Software Foundation (ASF) under one or more
6+
* contributor license agreements. See the NOTICE file distributed with
7+
* this work for additional information regarding copyright ownership.
8+
* The ASF licenses this file to You under the Apache License, Version 2.0
9+
* (the "License"); you may not use this file except in compliance with
10+
* the License. You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/
2020

21-
public enum SoreType
22-
{
23-
ASSUMPTION,
24-
FAILURE,
25-
ERROR
26-
}
21+
public enum SoreType
22+
{
23+
ASSUMPTION,
24+
FAILURE,
25+
ERROR
26+
}
2727

2828
}

src/Lucene.Net.Tests/Util/JunitCompat/TestBeforeAfterOverrides.cs

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -3,101 +3,101 @@
33
namespace Lucene.Net.Util.JunitCompat
44
{
55

6-
using After = org.junit.After;
7-
using Assert = org.junit.Assert;
8-
using Before = org.junit.Before;
9-
using Test = org.junit.Test;
10-
using JUnitCore = org.junit.runner.JUnitCore;
11-
using Result = org.junit.runner.Result;
6+
using After = org.junit.After;
7+
using Assert = org.junit.Assert;
8+
using Before = org.junit.Before;
9+
using Test = org.junit.Test;
10+
using JUnitCore = org.junit.runner.JUnitCore;
11+
using Result = org.junit.runner.Result;
1212

13-
/*
14-
* Licensed to the Apache Software Foundation (ASF) under one or more
15-
* contributor license agreements. See the NOTICE file distributed with
16-
* this work for additional information regarding copyright ownership.
17-
* The ASF licenses this file to You under the Apache License, Version 2.0
18-
* (the "License"); you may not use this file except in compliance with
19-
* the License. You may obtain a copy of the License at
20-
*
21-
* http://www.apache.org/licenses/LICENSE-2.0
22-
*
23-
* Unless required by applicable law or agreed to in writing, software
24-
* distributed under the License is distributed on an "AS IS" BASIS,
25-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26-
* See the License for the specific language governing permissions and
27-
* limitations under the License.
28-
*/
13+
/*
14+
* Licensed to the Apache Software Foundation (ASF) under one or more
15+
* contributor license agreements. See the NOTICE file distributed with
16+
* this work for additional information regarding copyright ownership.
17+
* The ASF licenses this file to You under the Apache License, Version 2.0
18+
* (the "License"); you may not use this file except in compliance with
19+
* the License. You may obtain a copy of the License at
20+
*
21+
* http://www.apache.org/licenses/LICENSE-2.0
22+
*
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
28+
*/
2929

30-
public class TestBeforeAfterOverrides : WithNestedTests
31-
{
32-
public TestBeforeAfterOverrides() : base(true)
33-
{
34-
}
30+
public class TestBeforeAfterOverrides : WithNestedTests
31+
{
32+
public TestBeforeAfterOverrides() : base(true)
33+
{
34+
}
3535

36-
public class Before1 : WithNestedTests.AbstractNestedTest
37-
{
36+
public class Before1 : WithNestedTests.AbstractNestedTest
37+
{
3838
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
3939
//ORIGINAL LINE: @Before public void before()
40-
public virtual void Before()
41-
{
42-
}
40+
public virtual void Before()
41+
{
42+
}
4343

44-
public virtual void TestEmpty()
45-
{
46-
}
47-
}
48-
public class Before2 : Before1
49-
{
50-
}
51-
public class Before3 : Before2
52-
{
44+
public virtual void TestEmpty()
45+
{
46+
}
47+
}
48+
public class Before2 : Before1
49+
{
50+
}
51+
public class Before3 : Before2
52+
{
5353
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
5454
//ORIGINAL LINE: @Override @Before public void before()
55-
public override void Before()
56-
{
57-
}
58-
}
55+
public override void Before()
56+
{
57+
}
58+
}
5959

60-
public class After1 : WithNestedTests.AbstractNestedTest
61-
{
60+
public class After1 : WithNestedTests.AbstractNestedTest
61+
{
6262
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
6363
//ORIGINAL LINE: @After public void after()
64-
public virtual void After()
65-
{
66-
}
64+
public virtual void After()
65+
{
66+
}
6767

68-
public virtual void TestEmpty()
69-
{
70-
}
71-
}
72-
public class After2 : Before1
73-
{
74-
}
75-
public class After3 : Before2
76-
{
68+
public virtual void TestEmpty()
69+
{
70+
}
71+
}
72+
public class After2 : Before1
73+
{
74+
}
75+
public class After3 : Before2
76+
{
7777
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
7878
//ORIGINAL LINE: @After public void after()
79-
public virtual void After()
80-
{
81-
}
82-
}
79+
public virtual void After()
80+
{
81+
}
82+
}
8383

8484
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
8585
//ORIGINAL LINE: @Test public void testBefore()
86-
public virtual void TestBefore()
87-
{
88-
Result result = JUnitCore.runClasses(typeof(Before3));
89-
Assert.AreEqual(1, result.FailureCount);
90-
Assert.IsTrue(result.Failures.Get(0).Trace.Contains("There are overridden methods"));
91-
}
86+
public virtual void TestBefore()
87+
{
88+
Result result = JUnitCore.runClasses(typeof(Before3));
89+
Assert.AreEqual(1, result.FailureCount);
90+
Assert.IsTrue(result.Failures.Get(0).Trace.Contains("There are overridden methods"));
91+
}
9292

9393
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
9494
//ORIGINAL LINE: @Test public void testAfter()
95-
public virtual void TestAfter()
96-
{
97-
Result result = JUnitCore.runClasses(typeof(Before3));
98-
Assert.AreEqual(1, result.FailureCount);
99-
Assert.IsTrue(result.Failures.Get(0).Trace.Contains("There are overridden methods"));
100-
}
101-
}
95+
public virtual void TestAfter()
96+
{
97+
Result result = JUnitCore.runClasses(typeof(Before3));
98+
Assert.AreEqual(1, result.FailureCount);
99+
Assert.IsTrue(result.Failures.Get(0).Trace.Contains("There are overridden methods"));
100+
}
101+
}
102102

103103
}

src/Lucene.Net.Tests/Util/JunitCompat/TestCodecReported.cs

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,54 @@
33
namespace Lucene.Net.Util.JunitCompat
44
{
55

6-
using Codec = Lucene.Net.Codecs.Codec;
7-
using Assert = org.junit.Assert;
8-
using Test = org.junit.Test;
9-
using JUnitCore = org.junit.runner.JUnitCore;
10-
using Result = org.junit.runner.Result;
11-
12-
/*
13-
* Licensed to the Apache Software Foundation (ASF) under one or more
14-
* contributor license agreements. See the NOTICE file distributed with
15-
* this work for additional information regarding copyright ownership.
16-
* The ASF licenses this file to You under the Apache License, Version 2.0
17-
* (the "License"); you may not use this file except in compliance with
18-
* the License. You may obtain a copy of the License at
19-
*
20-
* http://www.apache.org/licenses/LICENSE-2.0
21-
*
22-
* Unless required by applicable law or agreed to in writing, software
23-
* distributed under the License is distributed on an "AS IS" BASIS,
24-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25-
* See the License for the specific language governing permissions and
26-
* limitations under the License.
27-
*/
28-
29-
public class TestCodecReported : WithNestedTests
30-
{
31-
public TestCodecReported() : base(true)
32-
{
33-
}
34-
35-
public class Nested1 : WithNestedTests.AbstractNestedTest
36-
{
37-
public static string CodecName;
38-
39-
public virtual void TestDummy()
40-
{
41-
CodecName = Codec.Default.Name;
42-
Assert.Fail();
43-
}
44-
}
6+
using Codec = Lucene.Net.Codecs.Codec;
7+
using Assert = org.junit.Assert;
8+
using Test = org.junit.Test;
9+
using JUnitCore = org.junit.runner.JUnitCore;
10+
using Result = org.junit.runner.Result;
11+
12+
/*
13+
* Licensed to the Apache Software Foundation (ASF) under one or more
14+
* contributor license agreements. See the NOTICE file distributed with
15+
* this work for additional information regarding copyright ownership.
16+
* The ASF licenses this file to You under the Apache License, Version 2.0
17+
* (the "License"); you may not use this file except in compliance with
18+
* the License. You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
*/
28+
29+
public class TestCodecReported : WithNestedTests
30+
{
31+
public TestCodecReported() : base(true)
32+
{
33+
}
34+
35+
public class Nested1 : WithNestedTests.AbstractNestedTest
36+
{
37+
public static string CodecName;
38+
39+
public virtual void TestDummy()
40+
{
41+
CodecName = Codec.Default.Name;
42+
Assert.Fail();
43+
}
44+
}
4545

4646
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
4747
//ORIGINAL LINE: @Test public void testCorrectCodecReported()
48-
public virtual void TestCorrectCodecReported()
49-
{
50-
Result r = JUnitCore.runClasses(typeof(Nested1));
51-
Assert.AreEqual(1, r.FailureCount);
52-
Assert.IsTrue(base.SysErr().Contains("codec=" + Nested1.CodecName), base.SysErr());
53-
}
54-
}
48+
public virtual void TestCorrectCodecReported()
49+
{
50+
Result r = JUnitCore.runClasses(typeof(Nested1));
51+
Assert.AreEqual(1, r.FailureCount);
52+
Assert.IsTrue(base.SysErr().Contains("codec=" + Nested1.CodecName), base.SysErr());
53+
}
54+
}
5555

5656
}

0 commit comments

Comments
 (0)