package me.alb_i986.selenium.tinafw.tasks;

import me.alb_i986.selenium.tinafw.domain.User;

import org.apache.log4j.Logger;
import org.junit.Assert;

/**
 * Abstract WebTask responsible for knowing the 'who',
 * i.e. what user is going to perform the task.
 */
public abstract class BaseWebTask implements WebTask {
	
	protected static final Logger logger = Logger.getLogger(WebTask.class);
	
	protected User user;
	
	public WebTask setUser(User user) {
		Assert.assertNotNull(user);
		this.user = user;
		return this;
	}

	public User getUser() {
		return user;
	}

}

@@ -121,33 +121,8 @@
 ger;
-%0Aimport org.junit.Assert;
 %0A%0A/*
@@ -429,33 +429,77 @@
 %7B%0A%09%09
-Assert.assertNotNull(user
+if(user == null)%0A%09%09%09throw new IllegalArgumentException(%22user is null%22
 );%0A%09

fix BaseWebTask#setUser