This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an Enum to mock objects used for serialization tests
- Loading branch information
Malachi Griffie
committed
Mar 5, 2014
1 parent
be02fae
commit 84e3cba
Showing
7 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
// Copyright 2011 Malachi Griffie <[email protected]> | ||
// | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
package test.nexus.utils.serialization.json | ||
{ | ||
|
||
import asunit.framework.TestCase; | ||
import mock.MockEnum; | ||
import mock.testing_namespace; | ||
import nexus.utils.ObjectUtils; | ||
|
||
|
@@ -56,6 +57,7 @@ public class JsonSerializerTest extends TestCase | |
m_base1 = new BaseClass(); | ||
m_base2 = new BaseClass(); | ||
m_base1.baseVar = m_base2.baseVar = 100; | ||
m_base1.mockEnum = m_base2.mockEnum = MockEnum.Value2; | ||
m_base1.testing_namespace::baseVar = "test_serialization3"; | ||
|
||
m_serializer1 = new JsonSerializer(); | ||
|