bin.test.org.objectweb.howl.log.ConfigurationTest.class Maven / Gradle / Ivy
???? 0?
? ? ? ?
?
? ? ? ?
? ?
? ?
? ?
?
?
?
? ?
?
?
,
,
,
! ?
!
!
?
?
, !"
#$
?%&'()
,*
?+,-./01234
,5
?67
?89
F:
F; F<
=>? @A
?BC
FDE
,FGHIJKL
,M
=NO
, ?P
,Q
RS
,TUV
aMW
X
,Y
,Z
?[\
,]
?^
?_`
,ab ? ?c
,d
,ef
,gh
,i
jk
,l
,m
,n
,o
,p
,q
,r
,s
,t
,u
,vw
,xyz
?{|}
,~
???
??????
?
??
?
???? cfg &Lorg/objectweb/howl/log/Configuration; prop Ljava/util/Properties; systemErr Ljava/io/PrintStream; baseDir Ljava/io/File; outDir .class$org$objectweb$howl$log$ConfigurationTest Ljava/lang/Class; Synthetic main ([Ljava/lang/String;)V Code LineNumberTable LocalVariableTable args [Ljava/lang/String; setUp ()V this *Lorg/objectweb/howl/log/ConfigurationTest; baseDirName Ljava/lang/String;
Exceptions? tearDown deleteLogFiles f i I logDir dir logs [Ljava/io/File; logFileName
logFileExt pattern (Ljava/lang/String;)V name testListConfigDefault? testListConfigTrue e Ljava/lang/NullPointerException; testListConfigFalse testBufferSize_1 testBufferSize_32 testBufferSize_0 2Lorg/objectweb/howl/log/LogConfigurationException; testBufferSize_33 testAdler32ChecksumError testAdler32ChecksumTrue log Lorg/objectweb/howl/log/Logger; lb "Lorg/objectweb/howl/log/LogBuffer; testAdler32ChecksumFalse testChecksumEnabledError testChecksumEnabledTrue testChecksumEnabledFalse testMinBuffers_GT_MaxBuffers testMinBuffers_LE_zero testMinBuffers_EQ_MaxBuffers !testConstrucFromFile_FileNotFound cause Ljava/lang/Throwable; file testConstructFromFile cfg2 verifyConfiguration )(Lorg/objectweb/howl/log/Configuration;)V testConstructFromProperties testSetMethods cfg3 testLogFileMode testStore testCallerPropertiesNotChanged key Ljava/util/Enumeration; original class$ %(Ljava/lang/String;)Ljava/lang/Class; x1 "Ljava/lang/ClassNotFoundException; x0
SourceFile ConfigurationTest.java?? ? java/lang/ClassNotFoundException java/lang/NoClassDefFoundError ? ??? ? ? (org.objectweb.howl.log.ConfigurationTest ? ???? ? ? basedir .??? java/io/File ? ? ? ? target/test-resources ?? ? ???? ? ? ? java/util/Properties ? ? ? ??? ? ????????? java/lang/StringBuffer ^?? _ \d+\.???????? $org/objectweb/howl/log/Configuration ??
listConfig true??
Expecting NPE? ? java/lang/NullPointerException false
bufferSize 1???? 1 32 0 "Expected LogConfigurationException 0org/objectweb/howl/log/LogConfigurationException 33 adler32Checksum yes checksumEnabled???? true ? ? org/objectweb/howl/log/Logger ? ?? ?????? checksum method ????? java/util/zip/Adler32? ? false ?? false
maxBuffers
minBuffers 2 -1 *src/test-resources/filenotfound.properties ???? java/io/FileNotFoundException maxLogFiles??????? #testConstructFromFileLog.properties java/io/FileOutputStream %testConstructFromFile test properties?????? ? ? bufferClassName?????? flushSleepTime??
logFileDir maxBlocksPerFile???? threadsWaitingForceThreshold?? flushPartialBuffers?????? ?? ?? ?? ??????????????? rw? ? rwd r $: expected LogConfigurationException RW .properties?????? Sink??????? java/lang/String???????? (org/objectweb/howl/log/ConfigurationTest junit/framework/TestCase java/lang/Exception #org/objectweb/howl/log/LogException java/lang/Class forName initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; junit/textui/TestRunner run (Ljava/lang/Class;)V java/lang/System getProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; #(Ljava/io/File;Ljava/lang/String;)V mkdirs ()Z err setErr (Ljava/io/PrintStream;)V
getLogFileDir ()Ljava/lang/String; listFiles ()[Ljava/io/File; getLogFileName
getLogFileExt append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; toString getName matches (Ljava/lang/String;)Z delete (Ljava/util/Properties;)V setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; fail
getBufferSize ()I assertEquals (Ljava/lang/String;II)V isAdler32ChecksumEnabled
assertTrue (Ljava/lang/String;Z)V open bmgr )Lorg/objectweb/howl/log/LogBufferManager; 'org/objectweb/howl/log/LogBufferManager getLogBuffer %(I)Lorg/objectweb/howl/log/LogBuffer; org/objectweb/howl/log/LogBuffer checksum Ljava/util/zip/Adler32; assertFalse close isChecksumEnabled (Ljava/io/File;)V getCause ()Ljava/lang/Throwable; getMaxLogFiles java/lang/Integer (I)Ljava/lang/String;
getMinBuffers store +(Ljava/io/OutputStream;Ljava/lang/String;)V setMaxLogFiles (I)V
setMinBuffers getBufferClassName 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V (Ljava/lang/String;ZZ)V getFlushSleepTime getMaxBlocksPerFile
getMaxBuffers getThreadsWaitingForceThreshold isFlushPartialBuffers java/lang/Boolean (Z)Ljava/lang/String; setBufferClassName
setLogFileDir
setLogFileExt setLogFileName
setBufferSize setMaxBlocksPerFile
setMaxBuffers setChecksumEnabled (Z)V setFlushSleepTime setThreadsWaitingForceThreshold setFlushPartialBuffers setLogFileMode (Ljava/io/OutputStream;)V size (II)V keys ()Ljava/util/Enumeration; java/util/Enumeration hasMoreElements nextElement ()Ljava/lang/Object; containsKey (Ljava/lang/Object;)Z &(Ljava/lang/String;)Ljava/lang/String; '(Ljava/lang/String;Ljava/lang/String;)V ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? G ? ? ? Y? ? ? ? ? ?
? @ ? ? ? ? ? ? ? D*?
?
L*? Y+? ? *? Y*? ? ? *? ? W*? ? *? Y? ? ? ? " H J K L ) M 1 N 8 O C P ? D ? ? 8 ? ? ? ? ? ? ? > *? *? ? ? ? U V W ? ? ? ? ? ? ? ? w*? ? L? Y+? M,? N*? ? :*? ? :? !Y? "#? $? $%? $&? $? $? ':6-?? "-2:? (? )? ? *W???ݱ ? 2 ` a b d e ( h M j W l ] m j n p j v p ? \ ] ? ? P &