Refresh license headers to include changes to community license and module description

This commit is contained in:
Roy Wetherall
2016-03-03 10:38:37 +11:00
parent 4346d79cc9
commit d165a43353
832 changed files with 17463 additions and 12471 deletions

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.action;
/*
package org.alfresco.module.org_alfresco_module_rm.action;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.action;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.doReturn;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.action.dm;
/*
package org.alfresco.module.org_alfresco_module_rm.action.dm;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.action.dm;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.action.impl;
/*
package org.alfresco.module.org_alfresco_module_rm.action.impl;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.action.impl;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.verifyZeroInteractions;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.action.impl;
/*
package org.alfresco.module.org_alfresco_module_rm.action.impl;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.action.impl;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateText;
import static org.mockito.Matchers.any;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.bootstrap;
/*
package org.alfresco.module.org_alfresco_module_rm.bootstrap;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.bootstrap;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.never;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.bootstrap;
/*
package org.alfresco.module.org_alfresco_module_rm.bootstrap;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.bootstrap;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.times;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.capability;
/*
package org.alfresco.module.org_alfresco_module_rm.capability;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.capability;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condition;
/*
package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condition;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condit
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.*;
import static org.junit.Assert.*;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condition;
/*
package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condition;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condit
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condition;
/*
package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condition;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.capability.declarative.condit
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.capability.impl;
/*
package org.alfresco.module.org_alfresco_module_rm.capability.impl;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.capability.impl;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.when;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.content;
/*
package org.alfresco.module.org_alfresco_module_rm.content;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.content;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.content.cleanser;
/*
package org.alfresco.module.org_alfresco_module_rm.content.cleanser;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.content.cleanser;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.inOrder;
import static org.mockito.Mockito.when;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.forms;
/*
package org.alfresco.module.org_alfresco_module_rm.forms;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.forms;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateQName;
import static org.mockito.Matchers.any;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.hold;
/*
package org.alfresco.module.org_alfresco_module_rm.hold;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.hold;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateQName;
import static org.junit.Assert.assertEquals;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.job;
/*
package org.alfresco.module.org_alfresco_module_rm.job;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.job;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateQName;
import static org.junit.Assert.assertEquals;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator;
/*
package org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator;
/*
package org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateQName;
import static org.junit.Assert.assertFalse;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.model.compatibility;
/*
package org.alfresco.module.org_alfresco_module_rm.model.compatibility;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.model.compatibility;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.verifyZeroInteractions;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.model.rma.aspect;
/*
package org.alfresco.module.org_alfresco_module_rm.model.rma.aspect;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.model.rma.aspect;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.never;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.patch.v22;
/*
package org.alfresco.module.org_alfresco_module_rm.patch.v22;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.patch.v22;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.patch.v22;
/*
package org.alfresco.module.org_alfresco_module_rm.patch.v22;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.patch.v22;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.times;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.record;
/*
package org.alfresco.module.org_alfresco_module_rm.record;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.record;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Mockito.verify;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.record;
/*
package org.alfresco.module.org_alfresco_module_rm.record;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.record;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateQName;
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateText;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
/*
package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import java.util.Map;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
/*
package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.version.RecordableVersionPolicy.ALL;
import static org.alfresco.module.org_alfresco_module_rm.version.RecordableVersionPolicy.MAJOR_ONLY;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
/*
package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.recorded.version.config;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.script.slingshot.RecordedVersionConfigPost.RECORDED_VERSION;
import static org.alfresco.module.org_alfresco_module_rm.version.RecordableVersionPolicy.ALL;

View File

@@ -1,11 +1,17 @@
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -15,12 +21,12 @@ package org.alfresco.module.org_alfresco_module_rm.script.hold;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import java.util.ArrayList;
import java.util.Collections;

View File

@@ -1,11 +1,17 @@
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -15,12 +21,12 @@ package org.alfresco.module.org_alfresco_module_rm.script.hold;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.WebScriptExceptionMatcher.badRequest;
import static org.mockito.Matchers.eq;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.script.hold;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.times;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.script.hold;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.times;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
package org.alfresco.module.org_alfresco_module_rm.script.hold;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.script.hold;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.security;
/*
package org.alfresco.module.org_alfresco_module_rm.security;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.security;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test;
/*
package org.alfresco.module.org_alfresco_module_rm.test;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import org.junit.extensions.cpsuite.ClasspathSuite;
import org.junit.extensions.cpsuite.ClasspathSuite.ClassnameFilters;
@@ -42,4 +48,4 @@ import org.junit.runner.RunWith;
})
public class AllUnitTestSuite
{
}
}

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.doReturn;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.AlfMock.generateQName;
import static org.mockito.Matchers.any;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static java.util.Collections.emptyMap;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import java.util.Optional;
import java.util.function.Supplier;
@@ -169,4 +175,4 @@ public class ExceptionUtils
throw new UnexpectedThrowableException(expected, thrownByCode);
}
}
}
}

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import org.alfresco.module.org_alfresco_module_rm.test.util.ExceptionUtils.MissingThrowableException;
import org.alfresco.module.org_alfresco_module_rm.test.util.ExceptionUtils.UnexpectedThrowableException;
@@ -105,4 +111,4 @@ public class ExceptionUtilsUsageExamplesUnitTest
return null;
});
}
}
}

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.toList;
@@ -90,4 +96,4 @@ public class FPUtils
{
return new HashSet<>(asList(objects));
}
}
}

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.alfresco.module.org_alfresco_module_rm.test.util.FPUtils.asListFrom;
import static org.alfresco.module.org_alfresco_module_rm.test.util.FPUtils.asSet;
@@ -79,4 +85,4 @@ public class FPUtilsUnitTest
});
assertEquals(new HashSet<>(asList("hello", "world")), s);
}
}
}

View File

@@ -1,13 +1,19 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -17,83 +23,83 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.when;
import org.alfresco.module.org_alfresco_module_rm.util.AuthenticationUtil;
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
/**
* A helper to initialise a mock {@link AuthenticationUtil}.
*
* @author tpage
*/
public class MockAuthenticationUtilHelper
{
/**
* Set up a Mockito mock <code>AuthenticationUtil</code> so that it executes all methods assuming the user has
* permissions. If the mock is asked for details about the user then it assumes the currently authenticated user is
* "admin".
*
* @param mockAuthenticationUtil The mock to initialise.
*/
public static void setup(AuthenticationUtil mockAuthenticationUtil)
{
setup(mockAuthenticationUtil, "admin");
}
/**
* Set up a Mockito mock <code>AuthenticationUtil</code> so that it executes all methods assuming the user has
* permissions.
*
* @param mockAuthenticationUtil The mock to initialise.
* @param fullyAuthenticatedUser The name of the user that last authenticated.
*/
@SuppressWarnings("unchecked")
public static void setup(AuthenticationUtil mockAuthenticationUtil, String fullyAuthenticatedUser)
{
reset(mockAuthenticationUtil);
// just do the work
doAnswer(new Answer<Object>()
{
@SuppressWarnings("rawtypes")
@Override
public Object answer(InvocationOnMock invocation) throws Throwable
{
RunAsWork work = (RunAsWork) invocation.getArguments()[0];
return work.doWork();
}
}).when(mockAuthenticationUtil).<Object> runAsSystem(any(RunAsWork.class));
// just do the work
doAnswer(new Answer<Object>()
{
@SuppressWarnings("rawtypes")
@Override
public Object answer(InvocationOnMock invocation) throws Throwable
{
RunAsWork work = (RunAsWork) invocation.getArguments()[0];
return work.doWork();
}
}).when(mockAuthenticationUtil).<Object> runAs(any(RunAsWork.class), anyString());
when(mockAuthenticationUtil.getAdminUserName()).thenReturn("admin");
when(mockAuthenticationUtil.getFullyAuthenticatedUser()).thenReturn(fullyAuthenticatedUser);
when(mockAuthenticationUtil.getRunAsUser()).thenReturn(fullyAuthenticatedUser);
when(mockAuthenticationUtil.getSystemUserName()).thenReturn("system");
}
}
* #L%
*/
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.when;
import org.alfresco.module.org_alfresco_module_rm.util.AuthenticationUtil;
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
/**
* A helper to initialise a mock {@link AuthenticationUtil}.
*
* @author tpage
*/
public class MockAuthenticationUtilHelper
{
/**
* Set up a Mockito mock <code>AuthenticationUtil</code> so that it executes all methods assuming the user has
* permissions. If the mock is asked for details about the user then it assumes the currently authenticated user is
* "admin".
*
* @param mockAuthenticationUtil The mock to initialise.
*/
public static void setup(AuthenticationUtil mockAuthenticationUtil)
{
setup(mockAuthenticationUtil, "admin");
}
/**
* Set up a Mockito mock <code>AuthenticationUtil</code> so that it executes all methods assuming the user has
* permissions.
*
* @param mockAuthenticationUtil The mock to initialise.
* @param fullyAuthenticatedUser The name of the user that last authenticated.
*/
@SuppressWarnings("unchecked")
public static void setup(AuthenticationUtil mockAuthenticationUtil, String fullyAuthenticatedUser)
{
reset(mockAuthenticationUtil);
// just do the work
doAnswer(new Answer<Object>()
{
@SuppressWarnings("rawtypes")
@Override
public Object answer(InvocationOnMock invocation) throws Throwable
{
RunAsWork work = (RunAsWork) invocation.getArguments()[0];
return work.doWork();
}
}).when(mockAuthenticationUtil).<Object> runAsSystem(any(RunAsWork.class));
// just do the work
doAnswer(new Answer<Object>()
{
@SuppressWarnings("rawtypes")
@Override
public Object answer(InvocationOnMock invocation) throws Throwable
{
RunAsWork work = (RunAsWork) invocation.getArguments()[0];
return work.doWork();
}
}).when(mockAuthenticationUtil).<Object> runAs(any(RunAsWork.class), anyString());
when(mockAuthenticationUtil.getAdminUserName()).thenReturn("admin");
when(mockAuthenticationUtil.getFullyAuthenticatedUser()).thenReturn(fullyAuthenticatedUser);
when(mockAuthenticationUtil.getRunAsUser()).thenReturn(fullyAuthenticatedUser);
when(mockAuthenticationUtil.getSystemUserName()).thenReturn("system");
}
}

View File

@@ -1,11 +1,17 @@
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
package org.alfresco.module.org_alfresco_module_rm.test.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -15,12 +21,12 @@ package org.alfresco.module.org_alfresco_module_rm.test.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import org.junit.internal.matchers.TypeSafeMatcher;
import org.springframework.extensions.webscripts.Status;
@@ -99,4 +105,4 @@ public class WebScriptExceptionMatcher extends TypeSafeMatcher<WebScriptExceptio
.appendText(" was found instead of ")
.appendValue(expectedStatus);
}
}
}

View File

@@ -1,13 +1,19 @@
package org.alfresco.module.org_alfresco_module_rm.util;
/*
package org.alfresco.module.org_alfresco_module_rm.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -17,103 +23,103 @@ package org.alfresco.module.org_alfresco_module_rm.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
import static com.google.common.collect.Sets.newHashSet;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import static org.alfresco.module.org_alfresco_module_rm.test.util.ExceptionUtils.expectedException;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.asSet;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.diffKey;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.head;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.tail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.Difference;
import org.junit.Test;
/**
* Unit tests for {@link RMCollectionUtils}.
*
* @author Neil Mc Erlean
* @since 2.4.a
*/
public class RMCollectionUtilsUnitTest
{
@Test public void getDuplicateElements()
{
List<String> l = asList("A", "B", "C", "B", "A");
assertEquals("Failed to identify duplicate elements", asList("B", "A"), RMCollectionUtils.getDuplicateElements(l));
assertEquals(Collections.emptyList(), RMCollectionUtils.getDuplicateElements(asList("A", "B", "C")));
}
@Test public void compareMaps()
{
// Set up two maps to compare
final Map<Integer, Integer> mapA = new HashMap<>();
final Map<Integer, Integer> mapB = new HashMap<>();
// Fill one map with numbers and their squares...
for (int i : asList(1, 2, 3, 4, 5))
{
mapA.put(i, i*i);
}
// ... the other one has the same entries...
mapB.putAll(mapA);
// ... but with an addition, a deletion and a value change.
mapB.put(6, 36);
mapB.remove(1);
mapB.put(3, 100);
// Now ensure that various changes are correctly identified
assertEquals(Difference.REMOVED, diffKey(mapA, mapB, 1));
assertEquals(Difference.ADDED, diffKey(mapA, mapB, 6));
assertEquals(Difference.UNCHANGED, diffKey(mapA, mapB, 2));
assertEquals(Difference.UNCHANGED, diffKey(mapA, mapB, -1));
assertEquals(Difference.CHANGED, diffKey(mapA, mapB, 3));
}
@Test public void tailsOfLists()
{
assertEquals(asList(2), tail(asList(1, 2)));
assertEquals(emptyList(), tail(asList(1)));
expectedException(UnsupportedOperationException.class, () -> tail(emptyList()));
}
@Test public void headsOfLists()
{
assertEquals("a", head(asList("a", "b")));
assertEquals("a", head(asList("a")));
assertNull(head(emptyList()));
}
@Test public void elementsAsSet()
{
assertEquals(newHashSet("hello", "world"), asSet("hello", "world"));
assertEquals(newHashSet(3, 7, 31, 127), asSet(3, 7, 31, 127));
}
@Test public void elementsAsSerializableList()
{
// If these lines compile, then we're good
Serializable s = RMCollectionUtils.<String, ArrayList<String>>asSerializableList("one", "two", "three");
List<String> l = RMCollectionUtils.<String, ArrayList<String>>asSerializableList("one", "two", "three");
assertEquals(s, l);
}
}
* #L%
*/
import static com.google.common.collect.Sets.newHashSet;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import static org.alfresco.module.org_alfresco_module_rm.test.util.ExceptionUtils.expectedException;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.asSet;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.diffKey;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.head;
import static org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.tail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.alfresco.module.org_alfresco_module_rm.util.RMCollectionUtils.Difference;
import org.junit.Test;
/**
* Unit tests for {@link RMCollectionUtils}.
*
* @author Neil Mc Erlean
* @since 2.4.a
*/
public class RMCollectionUtilsUnitTest
{
@Test public void getDuplicateElements()
{
List<String> l = asList("A", "B", "C", "B", "A");
assertEquals("Failed to identify duplicate elements", asList("B", "A"), RMCollectionUtils.getDuplicateElements(l));
assertEquals(Collections.emptyList(), RMCollectionUtils.getDuplicateElements(asList("A", "B", "C")));
}
@Test public void compareMaps()
{
// Set up two maps to compare
final Map<Integer, Integer> mapA = new HashMap<>();
final Map<Integer, Integer> mapB = new HashMap<>();
// Fill one map with numbers and their squares...
for (int i : asList(1, 2, 3, 4, 5))
{
mapA.put(i, i*i);
}
// ... the other one has the same entries...
mapB.putAll(mapA);
// ... but with an addition, a deletion and a value change.
mapB.put(6, 36);
mapB.remove(1);
mapB.put(3, 100);
// Now ensure that various changes are correctly identified
assertEquals(Difference.REMOVED, diffKey(mapA, mapB, 1));
assertEquals(Difference.ADDED, diffKey(mapA, mapB, 6));
assertEquals(Difference.UNCHANGED, diffKey(mapA, mapB, 2));
assertEquals(Difference.UNCHANGED, diffKey(mapA, mapB, -1));
assertEquals(Difference.CHANGED, diffKey(mapA, mapB, 3));
}
@Test public void tailsOfLists()
{
assertEquals(asList(2), tail(asList(1, 2)));
assertEquals(emptyList(), tail(asList(1)));
expectedException(UnsupportedOperationException.class, () -> tail(emptyList()));
}
@Test public void headsOfLists()
{
assertEquals("a", head(asList("a", "b")));
assertEquals("a", head(asList("a")));
assertNull(head(emptyList()));
}
@Test public void elementsAsSet()
{
assertEquals(newHashSet("hello", "world"), asSet("hello", "world"));
assertEquals(newHashSet(3, 7, 31, 127), asSet(3, 7, 31, 127));
}
@Test public void elementsAsSerializableList()
{
// If these lines compile, then we're good
Serializable s = RMCollectionUtils.<String, ArrayList<String>>asSerializableList("one", "two", "three");
List<String> l = RMCollectionUtils.<String, ArrayList<String>>asSerializableList("one", "two", "three");
assertEquals(s, l);
}
}

View File

@@ -1,13 +1,19 @@
package org.alfresco.module.org_alfresco_module_rm.util;
/*
package org.alfresco.module.org_alfresco_module_rm.util;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -17,44 +23,44 @@ package org.alfresco.module.org_alfresco_module_rm.util;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
import org.alfresco.module.org_alfresco_module_rm.test.util.ExceptionUtils;
import org.junit.Test;
/**
* Unit tests for the {@link RMParameter} utility class.
*
* @author tpage
*/
public class RMParameterCheckUnitTest
{
@Test
public void checkNotBlank()
{
// Check that supplying null causes an exception.
ExceptionUtils.expectedException(IllegalArgumentException.class, () -> {
RMParameterCheck.checkNotBlank("name", null);
return null;
});
// Check that supplying an empty string causes an exception.
ExceptionUtils.expectedException(IllegalArgumentException.class, () -> {
RMParameterCheck.checkNotBlank("name", "");
return null;
});
// Check that supplying a whitespace only string causes an exception.
ExceptionUtils.expectedException(IllegalArgumentException.class, () -> {
RMParameterCheck.checkNotBlank("name", "\n\r \t");
return null;
});
// Check that supplying a mainly whitespace string throws no exceptions.
RMParameterCheck.checkNotBlank("name", "\n\r *\t");
}
}
* #L%
*/
import org.alfresco.module.org_alfresco_module_rm.test.util.ExceptionUtils;
import org.junit.Test;
/**
* Unit tests for the {@link RMParameter} utility class.
*
* @author tpage
*/
public class RMParameterCheckUnitTest
{
@Test
public void checkNotBlank()
{
// Check that supplying null causes an exception.
ExceptionUtils.expectedException(IllegalArgumentException.class, () -> {
RMParameterCheck.checkNotBlank("name", null);
return null;
});
// Check that supplying an empty string causes an exception.
ExceptionUtils.expectedException(IllegalArgumentException.class, () -> {
RMParameterCheck.checkNotBlank("name", "");
return null;
});
// Check that supplying a whitespace only string causes an exception.
ExceptionUtils.expectedException(IllegalArgumentException.class, () -> {
RMParameterCheck.checkNotBlank("name", "\n\r \t");
return null;
});
// Check that supplying a mainly whitespace string throws no exceptions.
RMParameterCheck.checkNotBlank("name", "\n\r *\t");
}
}

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.version;
/*
package org.alfresco.module.org_alfresco_module_rm.version;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.version;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.version;
/*
package org.alfresco.module.org_alfresco_module_rm.version;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.version;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@@ -663,4 +669,4 @@ public class RecordableVersionServiceImplUnitTest extends BaseUnitTest
verify(mockedDbNodeService)
.setProperty(versionNodeRef, RecordableVersionModel.PROP_RECORD_NODE_REF, null);
}
}
}

View File

@@ -1,12 +1,18 @@
package org.alfresco.module.org_alfresco_module_rm.version;
/*
package org.alfresco.module.org_alfresco_module_rm.version;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.module.org_alfresco_module_rm.version;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import java.io.Serializable;
import java.util.Map;
@@ -64,4 +70,4 @@ public class TestRecordableVersionServiceImpl extends RecordableVersionServiceIm
{
return "1.1";
}
}
}

View File

@@ -1,12 +1,18 @@
package org.alfresco.repo.action.parameter;
/*
package org.alfresco.repo.action.parameter;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.repo.action.parameter;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import java.util.List;

View File

@@ -1,12 +1,18 @@
package org.alfresco.repo.security.permissions.impl;
/*
package org.alfresco.repo.security.permissions.impl;
/*
* #%L
* This file is part of Alfresco.
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -16,12 +22,12 @@ package org.alfresco.repo.security.permissions.impl;
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
* #L%
*/
import static java.util.Arrays.asList;
import static org.mockito.Mockito.verify;