/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    mockContext = testResource.requireMockModule('mock_modules/mock_context'),
    newBatchLogger = require('../../../../serverside/logger/new_batch_logger.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    done();
};


exports['New batch logger.'] = function (test) {
    var logFile = testResource.resolveWorkFile('work_batch_log.log');
    var logger = newBatchLogger(mockContext({
            BATCH_LOG_PATH: logFile
        }
    ));
    logger.warn('Foo bar warning');
    test.done();
}
;