updated to log4j2

This commit is contained in:
jomu
2015-07-10 08:37:44 +00:00
parent f6c9dde7d9
commit 4b7a6a4a15
11 changed files with 566 additions and 16 deletions

View File

@@ -18,14 +18,18 @@ import org.junit.Before;
* @author jomu
*/
public class BaseTest {
protected SPContext context = null;
@Before
public void init() throws MalformedURLException, NoSuchAlgorithmException, KeyManagementException, JAXBException {
// FIXME - needs to be implemented using mock; replace with real data but make sure password is not commited
NtlmAuthenticator credentials = null;
context = null;
context = null;
// DO NOT COMMMT THE FOLLOWING LINES
credentials = new NtlmAuthenticator("wincor-nixdorf.com", "joern.muehlencord", "\"34fR4vbHuL");
context = new SPContext(new java.net.URL("https://troom.wincor-nixdorf.com/rooms/sw_ps_hq_utrecht/hqall/bd/spwin7/"), credentials, SPVersion.SP2010,
true);
}
/**

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<Query xmlns="http://schemas.microsoft.com/sharepoint/">
<Where>
<And>
<And>
<Contains>
<FieldRef Name="Editor" />
<Value Type="Text">Chandler</Value>
</Contains>
<Contains>
<FieldRef Name="FileRef" />
<Value Type="Text">AuditDeleteTesting</Value>
</Contains>
</And>
<Eq>
<FieldRef Name="Created_x0020_Date" />
<Value Type="DateTime">2013-09-11</Value>
</Eq>
</And>
</Where>
</CamlQueryRoot>