The Trunk: Tests-nice.297.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tests-nice.297.mcz

commits-2
Nicolas Cellier uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-nice.297.mcz

==================== Summary ====================

Name: Tests-nice.297
Author: nice
Time: 25 May 2014, 10:03:43.314 pm
UUID: 2d50690f-9f66-4c65-b5a5-59cacb10ac11
Ancestors: Tests-eem.296

Restore the original MCMockClassA methods #a #b #c to answer 'a' 'b' 'c' as originally intended.
Correct the testMcdSerialization test which did not correctly took a snaphsot of modified package (see mockVersionWithAncestor:).
Correct MCSerializationTest which omitted to restoreMocks (see tearDown).
Add a 30s timeout to MCSerializationTest (tests may timeout in case of huge package cache).
Remove MCSnapshotBrowserTest class>>resources which is same as super.
Classify some as yet unclassified.

=============== Diff against Tests-eem.296 ===============

Item was changed:
  ----- Method: MCMockClassA>>a (in category 'numeric') -----
  a
+ ^ 'a'!
- ^ 'a2'!

Item was changed:
  ----- Method: MCMockClassA>>b (in category 'numeric') -----
  b
+ ^ 'b'!
- ^ 'b1'!

Item was changed:
  ----- Method: MCMockClassA>>c (in category 'numeric') -----
  c
+ ^ 'c'!
- ^ 'c1'!

Item was added:
+ ----- Method: MCSerializationTest>>tearDown (in category 'running') -----
+ tearDown
+ self restoreMocks.
+ super tearDown.!

Item was changed:
  ----- Method: MCSerializationTest>>testMcdSerialization (in category 'testing') -----
  testMcdSerialization
  | stream expected actual |
+ <timeout: 30>
  expected := self mockDiffyVersion.
  stream := RWBinaryOrTextStream on: String new.
  MCMcdWriter fileOut: expected on: stream.
  actual := MCMcdReader versionFromStream: stream reset.
  self assertVersion: actual matches: expected.!

Item was changed:
  ----- Method: MCSerializationTest>>testMczSerialization (in category 'testing') -----
  testMczSerialization
+ <timeout: 30>
  self assertVersionsMatchWith: MCMczWriter.
  self assertExtensionProvidedBy: MCMczWriter.
  self assertVersionInfosMatchWith: MCMczWriter.
  self assertDependenciesMatchWith: MCMczWriter.!

Item was removed:
- ----- Method: MCSnapshotBrowserTest class>>resources (in category 'as yet unclassified') -----
- resources
- ^ Array with: MCSnapshotResource!

Item was changed:
+ ----- Method: MCTestCase class>>isAbstract (in category 'testing') -----
- ----- Method: MCTestCase class>>isAbstract (in category 'as yet unclassified') -----
  isAbstract
  ^ self = MCTestCase!

Item was changed:
+ ----- Method: MCTestCase class>>resources (in category 'accessing') -----
- ----- Method: MCTestCase class>>resources (in category 'as yet unclassified') -----
  resources
  ^ Array with: MCSnapshotResource!

Item was changed:
  ----- Method: MCTestCase>>mockVersionWithAncestor: (in category 'mocks') -----
  mockVersionWithAncestor: aMCVersion
  ^ MCVersion
  package: self mockPackage
  info: (self mockVersionInfoWithAncestor: aMCVersion info)
+ snapshot: self mockPackage snapshot!
- snapshot: self mockSnapshot!