$:.unshift File.join(File.dirname(__FILE__), "..", "..", "lib") require 'test/unit' require 'buildmaster' module BuildMaster class JavaManifestTest < Test::Unit::TestCase def test_loading_manifest manifest = JavaManifest.new(File.join(File.dirname(__FILE__), "manifest.mf")) version = manifest.version assert_equal(version.number, "2.3.3") end def test_increase_build manifest = JavaManifest.new(File.join(File.dirname(__FILE__), "manifest.mf")) build_number = manifest.version.build version = manifest.increase_build assert_equal(version.build, build_number + 1) assert_equal(version.build, manifest.version.build) end end end