input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testIsAuthenticationRequiredWhenSystemConnectionDoesNotRequireAuthenticationAndNotSystemAccount ( ) { org . apache . shiro . subject . Subject subject = new org . apache . activemq . shiro . subject . SubjectAdapter ( ) { @ org . apache . activemq . shiro . authc . Override public org . apache . shiro . subject . Princ...
org . junit . Assert . assertTrue ( policy . isAuthenticationRequired ( sc ) )
getSpaceStreamV2 ( ) { java . util . List < com . podio . stream . StreamObjectV2 > objects = getAPI ( ) . getSpaceStreamV2 ( 1 , 3 , 2 , null , new org . joda . time . DateTime ( 2010 , 10 , 4 , 12 , 0 , 0 , 0 , org . joda . time . DateTimeZone . UTC ) ) ; "<AssertPlaceHolder>" ; } getAPI ( ) { return com . podio . AP...
org . junit . Assert . assertEquals ( objects . size ( ) , 3 )
refreshAccessToken_delegates_success ( ) { com . google . auth . oauth2 . GoogleCredentials sourceCredentials = getSourceCredentials ( ) ; com . google . auth . oauth2 . ImpersonatedCredentialsTest . MockIAMCredentialsServiceTransportFactory mtransportFactory = new com . google . auth . oauth2 . ImpersonatedCredentials...
org . junit . Assert . assertEquals ( com . google . auth . oauth2 . ImpersonatedCredentialsTest . ACCESS_TOKEN , targetCredentials . refreshAccessToken ( ) . getTokenValue ( ) )
testRead ( ) { final com . allanbank . mongodb . bson . builder . DocumentBuilder fileResult = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) ; fileResult . addString ( "_id" , "id" ) . add ( GridFs . LENGTH_FIELD , 4 ) . add ( GridFs . CHUNK_SIZE_FIELD , 1024 ) ; final com . allanbank . mongod...
org . junit . Assert . assertArrayEquals ( new byte [ ] { 1 , 2 , 3 , 4 } , sink . toByteArray ( ) )
testUpdateString ( ) { java . lang . String message = "ahhh,<sp>snuts!" 0 ; final java . lang . String email = "joe@schmoe.com" ; final java . lang . String newEmail = "joe@gmail.com" ; org . eurekastreams . server . domain . Person person = new org . eurekastreams . server . domain . Person ( "jschmoe" , "ahhh,<sp>snu...
org . junit . Assert . assertEquals ( message , newEmail , person . getEmail ( ) )
testEquals ( ) { edu . ucla . sspace . dependency . DependencyTreeNode node1 = new edu . ucla . sspace . dependency . SimpleDependencyTreeNode ( "cat" , "n" , "c" , 0 ) ; edu . ucla . sspace . dependency . DependencyTreeNode node2 = new edu . ucla . sspace . dependency . SimpleDependencyTreeNode ( "cat" , "n" , "c" , 0...
org . junit . Assert . assertEquals ( node1 , node2 )
testGetDepartments ( ) { java . util . List < com . onboard . domain . model . Department > retDepartments = departmentServiceImpl . getAll ( ModuleHelper . start , ModuleHelper . limit ) ; verify ( mockedDepartmentMapper , times ( 1 ) ) . selectByExample ( com . onboard . service . account . impl . test . Mockito . ar...
org . junit . Assert . assertEquals ( 2 , retDepartments . size ( ) )
testVerwantschapKindKrijgtKindMetMoeder ( ) { final nl . bzk . brp . model . operationeel . kern . ActieModel actie = new nl . bzk . brp . model . operationeel . kern . ActieModel ( new nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortActieAttribuut ( nl . bzk . brp . model . algemeen . stamgegeven . kern ...
org . junit . Assert . assertTrue ( resultaat )
test_LocationListener_evaluateInCallback ( ) { org . junit . Assume . assumeTrue ( ( ( ( ( isWebkit2 ) || ( isChromium ) ) || ( org . eclipse . swt . tests . junit . SwtTestUtil . isCocoa ) ) || ( org . eclipse . swt . tests . junit . SwtTestUtil . isWindows ) ) ) ; java . util . concurrent . atomic . AtomicBoolean cha...
org . junit . Assert . assertTrue ( errMsg , passed )
save_Error ( ) { ctrl . init ( uas ) ; when ( us . saveUserAndSubscriptionAssignment ( any ( org . oscm . internal . usermanagement . POUserAndSubscriptions . class ) , anyListOf ( org . oscm . internal . usergroupmgmt . POUserGroup . class ) ) ) . thenThrow ( new org . oscm . internal . types . exception . ObjectNotFo...
org . junit . Assert . assertTrue ( model . getSubscriptions ( ) . isEmpty ( ) )
testGetDefaultSkuMultipleDifferentRankAsc ( ) { final org . yes . cart . domain . entity . ProductSku sku1 = context . mock ( org . yes . cart . domain . entity . ProductSku . class , "sku1" ) ; final org . yes . cart . domain . entity . ProductSku sku2 = context . mock ( org . yes . cart . domain . entity . ProductSku...
org . junit . Assert . assertSame ( sku2 , pe . getDefaultSku ( ) )
readBytes ( ) { final byte [ ] data = new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( data ) ; final com . flagstone . transform . coder . SWFDecoder fixture = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; final ...
org . junit . Assert . assertArrayEquals ( data , buffer )
testWithFanoutPreservesSideInputs ( ) { final org . apache . beam . sdk . values . PCollectionView < java . lang . Integer > view = pipeline . apply ( org . apache . beam . sdk . transforms . Create . of ( 1 ) ) . apply ( org . apache . beam . sdk . transforms . Sum . integersGlobally ( ) . asSingletonView ( ) ) ; Comb...
org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( view ) , combine . getSideInputs ( ) )
testGetChildElementsDataSource ( ) { ds . next ( ) ; "<AssertPlaceHolder>" ; } getChildElementsDataSource ( ) { return new com . archimatetool . jasperreports . data . ViewChildrenDataSource ( fCurrentView ) ; }
org . junit . Assert . assertNotNull ( ds . getChildElementsDataSource ( ) )
testSerializeWithSpecialCharacters_WithoutUpcasters ( ) { org . axonframework . serialization . SerializedObject < byte [ ] > serialized = testSubject . serialize ( new org . axonframework . serialization . xml . XStreamSerializerTest . TestEvent ( org . axonframework . serialization . xml . XStreamSerializerTest . SPE...
org . junit . Assert . assertEquals ( org . axonframework . serialization . xml . XStreamSerializerTest . SPECIAL__CHAR__STRING , deserialized . getName ( ) )
testGetResourcePoolExhausted ( ) { org . apache . commons . pool2 . impl . GenericObjectPoolConfig poolConfig = new org . apache . commons . pool2 . impl . GenericObjectPoolConfig ( ) ; poolConfig . setMaxTotal ( 1 ) ; poolConfig . setMaxWaitMillis ( 1 ) ; pool = new org . springframework . data . redis . connection . ...
org . junit . Assert . assertNotNull ( client )
testContentCachedOutputStream ( ) { org . apache . cxf . ws . rm . persistence . RMMessage msg = new org . apache . cxf . ws . rm . persistence . RMMessage ( ) ; org . apache . cxf . io . CachedOutputStream co = new org . apache . cxf . io . CachedOutputStream ( ) ; co . write ( org . apache . cxf . ws . rm . persisten...
org . junit . Assert . assertArrayEquals ( org . apache . cxf . ws . rm . persistence . RMMessageTest . DATA , msgbytes )
whenStratRunsWithOneModule_runItOnes ( ) { jsprit . core . algorithm . selector . SolutionSelector select = mock ( jsprit . core . algorithm . selector . SolutionSelector . class ) ; jsprit . core . algorithm . acceptor . SolutionAcceptor accept = mock ( jsprit . core . algorithm . acceptor . SolutionAcceptor . class )...
org . junit . Assert . assertEquals ( runs . size ( ) , 1 )
testInstanceIdentifier2 ( ) { org . opendaylight . yangtools . yang . model . api . Module tested = org . opendaylight . yangtools . yang . stmt . TestUtils . findModule ( context , "custom-types-test" ) . get ( ) ; org . opendaylight . yangtools . yang . model . api . LeafSchemaNode leaf = ( ( org . opendaylight . yan...
org . junit . Assert . assertFalse ( leafType . requireInstance ( ) )
testGetPolicies ( ) { org . kuali . rice . kew . api . doctype . org . kuali . rice . kew . doctype . bo . DocumentType dt = new org . kuali . rice . kew . api . doctype . org . kuali . rice . kew . doctype . bo . DocumentType ( ) ; dt . setDocumentTypePolicies ( org . kuali . rice . kew . doctype . bo . DocumentTypeBo...
org . junit . Assert . assertEquals ( policies , dt . getPolicies ( ) )
updateStatus ( ) { mockServer . expect ( requestTo ( ( ( "https://na7.salesforce.com/services/data/" + ( salesforce . apiOperations ( ) . getVersion ( ) ) ) + "/chatter/users/me/status" ) ) ) . andExpect ( method ( org . springframework . social . salesforce . api . impl . POST ) ) . andExpect ( content ( ) . string ( ...
org . junit . Assert . assertNotNull ( status )
should_get_the_remaining_time ( ) { input . ping ( leo ) ; br . com . caelum . timemachine . TimeMachine . goTo ( new org . joda . time . DateTime ( ) . plusSeconds ( 5 ) ) . andExecute ( new br . com . caelum . timemachine . Block < java . lang . Void > ( ) { @ org . mamute . input . Override public org . mamute . inp...
org . junit . Assert . assertEquals ( 10 , input . getRemainingTime ( leo ) )
hashCodeDifferent ( ) { final com . lightboxtechnologies . nsrl . MfgData a = new com . lightboxtechnologies . nsrl . MfgData ( com . lightboxtechnologies . nsrl . MfgDataTest . code , com . lightboxtechnologies . nsrl . MfgDataTest . name ) ; final com . lightboxtechnologies . nsrl . MfgData b = new com . lightboxtech...
org . junit . Assert . assertTrue ( ( ( a . hashCode ( ) ) != ( b . hashCode ( ) ) ) )
testUsernameToken ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . wss4j . T...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
queryWithLimit ( ) { org . apache . jackrabbit . oak . plugins . document . DocumentStore docStore = openDocumentStore ( ) ; org . apache . jackrabbit . oak . plugins . document . DocumentNodeStore store = new org . apache . jackrabbit . oak . plugins . document . DocumentMK . Builder ( ) . setDocumentStore ( docStore ...
org . junit . Assert . assertEquals ( DocumentMK . MANY_CHILDREN_THRESHOLD , docs . size ( ) )
testInitNoTrustAllTrustManager ( ) { org . irods . jargon . core . connection . SettableJargonPropertiesMBean settableJargonProperties = new org . irods . jargon . core . connection . SettableJargonProperties ( ) ; settableJargonProperties . setBypassSslCertChecks ( false ) ; org . irods . jargon . core . connection . ...
org . junit . Assert . assertNull ( irodsSession . getX509TrustManager ( ) )
testJacksonProxy ( ) { org . jboss . resteasy . test . providers . jackson2 . multipart . JsonForm proxy = org . jboss . resteasy . test . providers . jackson2 . multipart . Jackson2MultipartFormTest . client . target ( generateURL ( "" ) ) . proxy ( org . jboss . resteasy . test . providers . jackson2 . multipart . Js...
org . junit . Assert . assertEquals ( "bill" , name )
getUserIDAddsNameEntryToCache ( ) { configuration . linkingMethod = "name" ; when ( player . getUniqueId ( ) ) . thenReturn ( uuid ) ; when ( player . getName ( ) ) . thenReturn ( org . communitybridge . linker . UserPlayerLinkerTest . PLAYER_NAME ) ; when ( userIDDao . getUserID ( org . communitybridge . linker . User...
org . junit . Assert . assertEquals ( org . communitybridge . linker . UserPlayerLinkerTest . NAME_USER_ID , userPlayerLinker . getUserIDCache ( ) . get ( org . communitybridge . linker . UserPlayerLinkerTest . PLAYER_NAME ) )
testDismissCache_constructor ( ) { org . roaringbitmap . FastRankRoaringBitmap fast = new org . roaringbitmap . FastRankRoaringBitmap ( ) ; "<AssertPlaceHolder>" ; } isCacheDismissed ( ) { return ! ( cumulatedCardinalitiesCacheIsValid ) ; }
org . junit . Assert . assertTrue ( fast . isCacheDismissed ( ) )
testOneHotOp ( ) { for ( int axis = - 1 ; axis <= 0 ; axis ++ ) { java . lang . String err = org . nd4j . autodiff . validation . OpValidation . validate ( new org . nd4j . autodiff . validation . OpTestCase ( new org . nd4j . linalg . api . ops . impl . shape . OneHot ( org . nd4j . linalg . factory . Nd4j . create ( ...
org . junit . Assert . assertNull ( err )
testConverteerBSNIntegerWaarde ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . PERSOON_IDENTIFICATIENUMMERS_BURGERSERVICENUMMER ) ; final java . lang . String waarde = "2301342693" ; final java . lang . Object waardeGeconverteerd = zoekCriteriaConverte...
org . junit . Assert . assertEquals ( waarde , waardeGeconverteerd )
testIsSpecMatchConfigSpecWithMoreDvPortsAndAutoExpandEnabled ( ) { int currentNumPorts = 512 ; int currentvlanId = 100 ; boolean currentAutoExpand = true ; com . vmware . vim25 . DVSTrafficShapingPolicy currentTrafficShapingPolicy = new com . vmware . vim25 . DVSTrafficShapingPolicy ( ) ; com . vmware . vim25 . BoolPol...
org . junit . Assert . assertTrue ( specCompareResult )
testToBeanToJson_NonEmpty ( ) { org . tests . model . basic . AttributeHolder bean = new org . tests . model . basic . AttributeHolder ( ) ; bean . setId ( 99 ) ; bean . setAttributes ( new java . util . LinkedHashSet ( ) ) ; io . ebean . text . json . JsonWriteOptions options = new io . ebean . text . json . JsonWrite...
org . junit . Assert . assertEquals ( expectedJson , asJson )
map_A$F1 ( ) { java . lang . String value = "vvv" ; com . m3 . scalaflavor4j . Some < java . lang . String > target = new com . m3 . scalaflavor4j . Some < java . lang . String > ( value ) ; com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Integer > f = new com . m3 . scalaflavor4j . F1 < java . lan...
org . junit . Assert . assertThat ( actual . getOrNull ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 3 ) ) )
getBaseDirNoCommonBaseDir ( ) { final java . io . File [ ] fileSystemRoots = java . io . File . listRoots ( ) ; if ( ( fileSystemRoots . length ) == 1 ) { return ; } final java . io . File root1 = fileSystemRoots [ 0 ] ; final java . io . File root2 = fileSystemRoots [ 1 ] ; final java . io . File fileOnRoot1 = new jav...
org . junit . Assert . assertNull ( base )
testRemove ( ) { com . liferay . dynamic . data . mapping . model . DDMFormInstanceRecord newDDMFormInstanceRecord = addDDMFormInstanceRecord ( ) ; _persistence . remove ( newDDMFormInstanceRecord ) ; com . liferay . dynamic . data . mapping . model . DDMFormInstanceRecord existingDDMFormInstanceRecord = _persistence ....
org . junit . Assert . assertNull ( existingDDMFormInstanceRecord )
shouldGetTopActivityPackageName ( ) { createRunningTaskInfo ( ) . topActivity = new android . content . ComponentName ( com . navercorp . utilset . ui . ActivityUtilsTest . INSTALLED_PACKAGE , "" ) ; java . lang . String packageName = com . navercorp . utilset . ui . ActivityUtils . getTopActivityPackageName ( context ...
org . junit . Assert . assertThat ( packageName , org . hamcrest . CoreMatchers . is ( com . navercorp . utilset . ui . ActivityUtilsTest . INSTALLED_PACKAGE ) )
testUpdateKaleoDefinitionShouldIncrementVersion1 ( ) { com . liferay . portal . workflow . kaleo . model . KaleoDefinition kaleoDefinition = addKaleoDefinition ( ) ; kaleoDefinition = updateKaleoDefinition ( kaleoDefinition ) ; "<AssertPlaceHolder>" ; } getVersion ( ) { if ( ( _version ) == null ) { return "" ; } else ...
org . junit . Assert . assertEquals ( 2 , kaleoDefinition . getVersion ( ) )
test_from_TemporalAccessor_leapYear ( ) { java . time . LocalDate date = java . time . LocalDate . of ( 2008 , 1 , 1 ) ; for ( int i = 1 ; i <= ( org . threeten . extra . TestDayOfYear . LEAP_YEAR_LENGTH ) ; i ++ ) { org . threeten . extra . DayOfYear test = org . threeten . extra . DayOfYear . from ( date ) ; "<Assert...
org . junit . Assert . assertEquals ( i , test . getValue ( ) )
testIsRequestCounterValid_falseWithInvalidParameter ( ) { org . eclipse . rap . rwt . internal . lifecycle . RequestCounter . getInstance ( ) . nextRequestId ( ) ; org . eclipse . rap . rwt . internal . protocol . RequestMessage requestMessage = new org . eclipse . rap . rwt . testfixture . internal . TestMessage ( ) ;...
org . junit . Assert . assertFalse ( valid )
standardFlow11 ( ) { java . lang . String mSig = ( "<" + ( soot . jimple . infoflow . test . methodSummary . junit . ApiTests . className ) ) + ":<sp>int<sp>standardFlow(int)>" ; java . util . Set < soot . jimple . infoflow . methodSummary . data . summary . MethodFlow > res = createSummaries ( mSig ) . getAllFlows ( )...
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
testGetHeaderRowCountWithColumnWithoutHeaderMetaData ( ) { final org . uberfire . ext . wires . core . grids . client . model . impl . BaseGridColumn < java . lang . String > column = new org . uberfire . ext . wires . core . grids . client . model . impl . BaseGridColumn ( java . util . Collections . emptyList ( ) , c...
org . junit . Assert . assertEquals ( 0 , baseGridData . getHeaderRowCount ( ) )
testInst ( ) { kg . apc . jmeter . EndOfFileException i = new kg . apc . jmeter . EndOfFileException ( "" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( i )
emptyRangeLeft ( ) { final java . util . List < java . lang . Integer > docs = new java . util . ArrayList ( ) ; com . yandex . yoctodb . CompositeMmapDatabaseTest . db . execute ( select ( ) . where ( in ( "relevance" , from ( ( ( - 2 ) * ( com . yandex . yoctodb . CompositeMmapDatabaseTest . DOCS ) ) ) , true , from ...
org . junit . Assert . assertEquals ( 0 , docs . size ( ) )
testBlobs ( ) { try { java . lang . System . setOut ( new java . io . PrintStream ( new java . io . FileOutputStream ( java . io . FileDescriptor . out ) , true , "UTF-8" ) ) ; } catch ( java . io . UnsupportedEncodingException e ) { throw new java . lang . InternalError ( "VM<sp>does<sp>not<sp>support<sp>mandatory<sp>...
org . junit . Assert . assertTrue ( ( ( ( ( material == ( DIRT ) ) || ( material == ( GRAVEL ) ) ) || ( material == ( STONE ) ) ) || ( material == ( SOUL_SAND ) ) ) )
testSegmentEmpty ( ) { org . pb . x12 . Segment s = new org . pb . x12 . Segment ( new org . pb . x12 . Context ( '~' , '*' , ':' ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( s )
s3BucketCanBeCustomized ( ) { org . springframework . context . annotation . AnnotationConfigApplicationContext context = new org . springframework . context . annotation . AnnotationConfigApplicationContext ( ) ; org . springframework . boot . test . EnvironmentTestUtils . addEnvironment ( context , "s3.bucket:foo" ) ...
org . junit . Assert . assertThat ( properties . getBucket ( ) , org . hamcrest . Matchers . equalTo ( "foo" ) )
testEquals ( ) { org . jfree . data . category . DefaultCategoryDataset underlying = new org . jfree . data . category . DefaultCategoryDataset ( ) ; underlying . addValue ( 1.1 , "R1" , "C1" ) ; underlying . addValue ( 2.2 , "R1" , "C2" ) ; org . jfree . data . category . CategoryToPieDataset d1 = new org . jfree . da...
org . junit . Assert . assertTrue ( d1 . equals ( d2 ) )
testSetMaterial ( ) { org . eclipse . ice . tests . materials . SingleMaterialWritableTableFormatTester . tableFormat . setMaterial ( org . eclipse . ice . tests . materials . SingleMaterialWritableTableFormatTester . material1 ) ; "<AssertPlaceHolder>" ; org . eclipse . ice . tests . materials . SingleMaterialWritable...
org . junit . Assert . assertEquals ( org . eclipse . ice . tests . materials . SingleMaterialWritableTableFormatTester . material1 , org . eclipse . ice . tests . materials . SingleMaterialWritableTableFormatTester . tableFormat . getMaterial ( ) )
testGetTraceDirectory ( ) { java . io . File result = fixture . getTraceDirectory ( ) ; "<AssertPlaceHolder>" ; } getTraceDirectory ( ) { return org . eclipse . tracecompass . tmf . core . tests . parsers . custom . CustomXmlIndexTest . TRACE_DIRECTORY ; }
org . junit . Assert . assertNotNull ( result )
testMagicDecompression1 ( ) { org . nd4j . linalg . api . ndarray . INDArray array = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 100 , 2500 ) ; org . nd4j . linalg . api . ndarray . INDArray compressed = org . nd4j . linalg . factory . Nd4j . getCompressor ( ) . compress ( array , "GZIP" ) ; compressed . muli...
org . junit . Assert . assertEquals ( array , compressed )
getQueryParts_shouldProcessMixedSeparators ( ) { java . lang . String [ ] actual = patientSearchCriteria . getQueryParts ( "Anton,Bert,<sp>Charles<sp>Dorian<sp>Ernie" ) ; java . lang . String [ ] expected = new java . lang . String [ ] { "Anton" , "Bert" , "Charles" , "Dorian" , "Ernie" } ; "<AssertPlaceHolder>" ; } ge...
org . junit . Assert . assertArrayEquals ( expected , actual )
getStandardTypesTest ( ) { java . util . List < gov . nysenate . sage . model . district . DistrictType . DistrictType > standardTypes = gov . nysenate . sage . model . district . DistrictType . DistrictType . getStandardTypes ( ) ; java . util . List < gov . nysenate . sage . model . district . DistrictType . District...
org . junit . Assert . assertEquals ( new java . util . HashSet ( expectedTypes ) , new java . util . HashSet ( standardTypes ) )
regexp_extract ( ) { hiveShell . addResource ( ( ( hdfsSource ) + "/data.csv" ) , "1\t123ABC" ) ; hiveShell . start ( ) ; java . util . List < java . lang . String > expected = java . util . Arrays . asList ( "123" ) ; java . util . List < java . lang . String > actual = hiveShell . executeQuery ( "SELECT<sp>regexp_ext...
org . junit . Assert . assertEquals ( expected , actual )
testNewPDBStructure ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IPDBStructure structure = builder . newInstance ( org . openscience . cdk . interfaces . IPDBStruct...
org . junit . Assert . assertNotNull ( structure )
masterDownReadOnlyAvailable ( ) { try ( java . sql . Connection connection = java . sql . DriverManager . getConnection ( masterDownUrl ) ) { "<AssertPlaceHolder>" ; connection . isValid ( 0 ) ; connection . setReadOnly ( true ) ; try ( java . sql . PreparedStatement preparedStatement = connection . prepareStatement ( ...
org . junit . Assert . assertFalse ( connection . isReadOnly ( ) )
collectionLookup ( ) { java . lang . String expected = "http://musicbrainz.org/ws/2/collection/c6f9fb72-e233-47f4-a2f6-19f16442d93a/releases?inc=releases+artist-credits&limit=100" ; java . lang . String actual = org . musicbrainz . android . api . webservice . QueryBuilder . collectionLookup ( "c6f9fb72-e233-47f4-a2f6-...
org . junit . Assert . assertEquals ( expected , actual )
testDistributionBuckets ( ) { java . util . List < com . dremio . sabot . rpc . user . QueryDataBatch > result = testSqlWithResults ( "create<sp>table<sp>dfs_test.options_name<sp>DISTRIBUTE<sp>BY<sp>(name)<sp>STORE<sp>AS<sp>(type<sp>=><sp>'TEXT',<sp>fieldDelimiter<sp>=><sp>',')<sp>as<sp>select<sp>*<sp>from<sp>sys.optio...
org . junit . Assert . assertTrue ( ( recordCount > 1 ) )
testClearReifier ( ) { net . ontopia . topicmaps . rest . model . TopicName topicname = get ( "8" , net . ontopia . topicmaps . rest . model . TopicName . class ) ; topicname . setReifier ( null ) ; net . ontopia . topicmaps . rest . model . TopicName changed = post ( "2" , topicname , net . ontopia . topicmaps . rest ...
org . junit . Assert . assertNull ( changed . getReifier ( ) )
itShouldBuildComponenetPropertyTree ( ) { hydrograph . ui . propertywindow . testdata . PropertyStore propertyStore = new hydrograph . ui . propertywindow . testdata . PropertyStore ( ) ; java . util . ArrayList < hydrograph . ui . propertywindow . property . Property > inputComponentProperties = propertyStore . getPro...
org . junit . Assert . assertEquals ( expectedTree , propertyTreeBuilder . toString ( ) )
testFindAllExcludeStatus ( ) { java . lang . String status1 = "A" ; java . lang . String status2 = "B" ; java . lang . String paymentDate1 = "20080729" 1 ; java . lang . String paymentDate2 = "20091004" ; java . lang . String paymentDate3 = "20080729" ; java . lang . String paymentDate4 = "20041108" ; java . lang . Str...
org . junit . Assert . assertTrue ( true )
testNull ( ) { com . twitter . nodes . Node < java . lang . Boolean > node = com . twitter . nodes . IfSuccessfulNode . create ( com . twitter . nodes . Node . noValue ( ) ) ; "<AssertPlaceHolder>" ; } resultFromNode ( com . twitter . nodes . Node ) { return com . twitter . nodes . NodeTestBase . resultFromFuture ( nod...
org . junit . Assert . assertFalse ( resultFromNode ( node ) )
testCoder_nullCell ( ) { com . google . api . services . bigquery . model . TableRow row = new com . google . api . services . bigquery . model . TableRow ( ) ; row . set ( "temperature" , com . google . api . client . util . Data . nullOf ( java . lang . Object . class ) ) ; row . set ( "max_temperature" , com . googl...
org . junit . Assert . assertArrayEquals ( bytes , newBytes )
testSetChildIntString ( ) { org . pb . x12 . Loop loop = new org . pb . x12 . Loop ( new org . pb . x12 . Context ( '~' , '*' , ':' ) , "X12" ) ; loop . addChild ( "ST" 0 ) ; loop . addChild ( "GS" ) ; loop . addChild ( "XX" ) ; loop . addChild ( "1000A" ) ; loop . addChild ( "ST" 1 ) ; loop . addChild ( "2000" ) ; loo...
org . junit . Assert . assertEquals ( "ST" , loop . getLoop ( 2 ) . getName ( ) )
getOpNum ( ) { "<AssertPlaceHolder>" ; } getOpNum ( ) { return opNum ; }
org . junit . Assert . assertEquals ( 5 , request . getOpNum ( ) )
testFormatMessage_ThrowableNullMessage ( ) { com . sun . mail . util . logging . CompactFormatter cf = new com . sun . mail . util . logging . CompactFormatter ( ) ; java . lang . String result = cf . formatMessage ( new java . lang . Throwable ( ) ) ; java . lang . String expect = java . lang . Throwable . class . get...
org . junit . Assert . assertEquals ( expect , result )
testSaveAndRename ( ) { final org . uberfire . backend . vfs . Path path = mock ( org . uberfire . backend . vfs . Path . class ) ; final org . uberfire . backend . vfs . Path expectedPath = mock ( org . uberfire . backend . vfs . Path . class ) ; final org . guvnor . common . services . shared . metadata . model . Met...
org . junit . Assert . assertEquals ( expectedPath , actualPath )
testValidateTrue ( ) { target = new org . o3project . odenos . core . component . network . flow . basic . FlowActionOutput ( output ) ; "<AssertPlaceHolder>" ; } validate ( ) { try { org . apache . commons . lang . Validate . notEmpty ( this . lowerNw , "lower_nw<sp>is<sp>empty" ) ; org . apache . commons . lang . Val...
org . junit . Assert . assertThat ( target . validate ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testSyncCallback ( ) { @ com . alibaba . dubbo . rpc . protocol . dubbo . SuppressWarnings ( "unchecked" ) com . alibaba . dubbo . rpc . Invoker < com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService > invoker = org . easymock . EasyMock . createMock ( com . alibaba . dubbo . rpc . Invoker . class ) ;...
org . junit . Assert . assertEquals ( "High" , filterResult . getValue ( ) )
testLoadAllStrategies ( ) { strategyService . loadAllStrategies ( ) ; "<AssertPlaceHolder>" ; for ( java . lang . String instrumentId : INSTRUMENT_IDS ) { verify ( instrumentSubscriptionListener , times ( 1 ) ) . onInstrumentSubscriptionRequest ( instrumentId ) ; } for ( java . lang . String instrumentId : INSTRUMENT_I...
org . junit . Assert . assertTrue ( ( ! ( strategyService . getStrategies ( ) . isEmpty ( ) ) ) )
testIsVisibleShouldReturnTrueWhenThereIsASingleMetCriterion ( ) { org . mafagafogigante . dungeon . world . SimpleAstronomicalBody astronomicalBody = new org . mafagafogigante . dungeon . world . SimpleAstronomicalBody ( "" , metCriterion ) ; "<AssertPlaceHolder>" ; } isVisible ( org . mafagafogigante . dungeon . entit...
org . junit . Assert . assertTrue ( astronomicalBody . isVisible ( org . mockito . Mockito . mock ( org . mafagafogigante . dungeon . entity . creatures . Observer . class ) ) )
testObjectSome ( ) { org . semanticweb . owlapi . model . OWLClassExpression desc = ObjectSomeValuesFrom ( propP , clsA ) ; org . semanticweb . owlapi . model . OWLClassExpression neg = ObjectComplementOf ( desc ) ; org . semanticweb . owlapi . model . OWLClassExpression nnf = ObjectAllValuesFrom ( propP , ObjectComple...
org . junit . Assert . assertEquals ( nnf , comp )
testGetIdFails ( ) { com . google . common . base . Predicate < org . apache . jackrabbit . api . security . user . Authorizable > predicate = getDeclaredMembershipPredicate ( testGroup . getID ( ) ) ; org . apache . jackrabbit . api . security . user . Authorizable a = org . mockito . Mockito . mock ( org . apache . j...
org . junit . Assert . assertFalse ( predicate . apply ( a ) )
shouldReturnNotEqualForBlobAndWorkingFile ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelBlob left = createGitModelBlob ( ) ; org . eclipse . egit . ui . internal . synchronize . model . GitModelWorkingFile right = mock ( org . eclipse . egit . ui . internal . synchronize . model . GitModelW...
org . junit . Assert . assertFalse ( actual )
testImportNewFileWithNoManifestNoEXT ( ) { org . pentaho . platform . plugin . services . importer . RepositoryFileImportFileHandlerTest . ImportTestBuilder importTesterBuilder = new org . pentaho . platform . plugin . services . importer . RepositoryFileImportFileHandlerTest . ImportTestBuilder ( ) ; importTesterBuild...
org . junit . Assert . assertNull ( repositoryFile )
testCmdExecption ( ) { try { cles . execCommand ( "IDon'tExist" , null ) ; org . junit . Assert . fail ( "No<sp>Exception<sp>has<sp>been<sp>raised" ) ; } catch ( org . nuxeo . ecm . platform . commandline . executor . api . CommandNotAvailable e ) { java . lang . String msg = e . getErrorMessage ( ) ; "<AssertPlaceHold...
org . junit . Assert . assertNotNull ( msg )
testMakeRenameInProgressEvent ( ) { final org . uberfire . backend . vfs . Path path = mock ( org . uberfire . backend . vfs . Path . class ) ; doReturn ( path ) . when ( builder ) . getPath ( ) ; final org . uberfire . client . mvp . RenameInProgressEvent event = builder . makeRenameInProgressEvent ( ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( path , event . getPath ( ) )
testBytesFromFile ( ) { java . io . File file = new java . io . File ( "target/testFromFile" ) ; file . delete ( ) ; java . io . FileOutputStream out = new java . io . FileOutputStream ( file ) ; out . write ( "abcdefg" . getBytes ( ) ) ; out . close ( ) ; final java . io . ByteArrayOutputStream bytes = new java . io ....
org . junit . Assert . assertArrayEquals ( "abcdefg" . getBytes ( ) , bytes . toByteArray ( ) )
shouldNotCauseViolationsInput2 ( ) { org . semanticweb . owlapi . model . OWLOntology o = loadOntologyFromString ( org . semanticweb . owlapi . profiles . ForbiddenVocabularyTestCase . input2 ) ; org . semanticweb . owlapi . profiles . OWL2DLProfile profile = new org . semanticweb . owlapi . profiles . OWL2DLProfile ( ...
org . junit . Assert . assertTrue ( violations . isEmpty ( ) )
testGetChecksumDigit ( ) { "<AssertPlaceHolder>" ; } getChecksumDigit ( ) { return getAt ( ( ( getLength ( ) ) - 1 ) ) ; }
org . junit . Assert . assertEquals ( 9 , o . getChecksumDigit ( ) )
testAvoidProxy ( ) { avoidProxy = true ; java . lang . String pac = makeProxyPAC ( ) ; java . lang . String expected = "function<sp>FindProxyForURL(url,<sp>host)<sp>" + "{<sp>if<sp>(shExpMatch(url,<sp>'*/selenium-server/*'))<sp>{<sp>return<sp>'PROXY<sp>localhost:4444;<sp>DIRECT';<sp>}<sp>}" ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( expected , pac )
testSelfGateway ( ) { int expectedValue = 1337 ; org . apache . flink . runtime . rpc . RpcEndpointTest . BaseEndpoint baseEndpoint = new org . apache . flink . runtime . rpc . RpcEndpointTest . BaseEndpoint ( org . apache . flink . runtime . rpc . RpcEndpointTest . rpcService , expectedValue ) ; try { baseEndpoint . s...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( expectedValue ) , foobar . get ( ) )
testPluginGears ( ) { request . setPluginGears ( true ) ; "<AssertPlaceHolder>" ; } getPluginGears ( ) { return getBooleanParameter ( org . piwik . java . tracking . PiwikRequest . PLUGIN_GEARS ) ; }
org . junit . Assert . assertEquals ( true , request . getPluginGears ( ) )
getUserSecurityName ( ) { java . lang . String user = "vmmtestuser" ; java . lang . String securityName = "vmmtestuser" ; com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_SUNLDAP_DefaultConfigTest . c , "getUserSecurityName" , "Checking<sp>with<sp>a...
org . junit . Assert . assertEquals ( securityName , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_SUNLDAP_DefaultConfigTest . servlet . getUserSecurityName ( user ) )
testCreateFacebookAccountThatHaveToAcceptPermissions ( ) { com . jayway . facebooktestjavaapi . testuser . FacebookTestUserAccount createdAccount = com . jayway . facebooktestjavaapi . testuser . impl . TestHttpClientFacebookTestUserStore . facebookStore1 . createTestUser ( false , "email,user_about_me,user_birthday" )...
org . junit . Assert . assertNull ( createdAccount . accessToken ( ) )
testMatchExactly ( ) { target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionDecMplsTtlQuery ( actions ) ; org . o3project . odenos . core . component . network . flow . basic . FlowAction action = new org . o3project . odenos . core . component . network . flow . basic . Flow...
org . junit . Assert . assertThat ( target . matchExactly ( action ) , org . hamcrest . CoreMatchers . is ( false ) )
testCanGetOwnedConsumersCerts ( ) { consumerResource . bind ( consumer . getUuid ( ) , pool . getId ( ) . toString ( ) , null , 1 , null , null , false , null , null ) ; consumerResource . bind ( consumer . getUuid ( ) , pool . getId ( ) . toString ( ) , null , 1 , null , null , false , null , null ) ; consumerResource...
org . junit . Assert . assertEquals ( 3 , consumerResource . getEntitlementCertificates ( consumer . getUuid ( ) , null ) . size ( ) )
testGet ( ) { org . apache . bookkeeper . versioning . Versioned < org . apache . bookkeeper . metastore . Value > vv ; final java . util . Set < java . lang . String > fields = new java . util . HashSet < java . lang . String > ( java . util . Collections . singletonList ( org . apache . bookkeeper . metastore . TestM...
org . junit . Assert . assertNotNull ( version )
testNotEmpty ( ) { org . apache . jackrabbit . oak . spi . commit . MoveTracker mt = new org . apache . jackrabbit . oak . spi . commit . MoveTracker ( ) ; mt . addMove ( "/a/b/c" , "/d/e/f" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ) == 0 ; }
org . junit . Assert . assertFalse ( mt . isEmpty ( ) )
nonSyncProp ( ) { defnb . indexRule ( "nt:base" ) . property ( "foo" ) ; newCallback ( ) . propertyUpdated ( "/a" , "foo" , pd ( "foo" ) , null , createProperty ( "foo" , "bar" ) ) ; "<AssertPlaceHolder>" ; } isModified ( ) { return false ; }
org . junit . Assert . assertFalse ( builder . isModified ( ) )
nameIsTaken ( ) { java . lang . String module1 = "module1" ; java . lang . String module1_1 = "module1<sp>[1]" ; org . guvnor . common . services . project . model . WorkspaceProject project1 = mock ( org . guvnor . common . services . project . model . WorkspaceProject . class ) ; doReturn ( module1 ) . when ( project...
org . junit . Assert . assertEquals ( module1_1 , model . getPOM ( ) . getName ( ) )
testContainsNull ( ) { it . unimi . dsi . fastutil . ints . IntOpenHashSet s = new it . unimi . dsi . fastutil . ints . IntOpenHashSet ( new int [ ] { 1 , 2 , 3 } ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( s . contains ( null ) )
testScheduledTime ( ) { com . urbanairship . api . schedule . model . Schedule schedule = com . urbanairship . api . schedule . model . Schedule . newBuilder ( ) . setScheduledTimestamp ( dateTime ) . build ( ) ; "<AssertPlaceHolder>" ; } getScheduledTimestamp ( ) { return scheduledTimestamp ; }
org . junit . Assert . assertNotNull ( schedule . getScheduledTimestamp ( ) )
testFileCreator ( ) { loginAsSysTenantAdmin ( ) ; org . pentaho . platform . api . mt . ITenant tenantAcme = tenantManager . createTenant ( systemTenant , org . pentaho . platform . repository2 . unified . TENANT_ID_ACME , tenantAdminRoleName , tenantAuthenticatedRoleName , org . pentaho . platform . repository2 . unif...
org . junit . Assert . assertEquals ( reconstituedFile . getCreatorId ( ) , newFile2 . getId ( ) )
testCorrectePeriodeGemeenteGeenPeriode ( ) { java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = brby0904 . executeer ( null , maakPersoonOverlijden ( maakLand ( ( ( short ) ( 24 ) ) , "land" , null , null ) , 20120303 ) , maakActie ( "id.actie1" , 20120303 , 20120404 ) ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
checkHeaderTest ( ) { boolean isFormat = false ; isFormat = c . checkHeader ( id . getName ( ) . getBytes ( ) ) ; "<AssertPlaceHolder>" ; } getBytes ( ) { return bytes ; }
org . junit . Assert . assertFalse ( isFormat )
findProgram_notFound ( ) { final java . util . List < java . lang . String > directories = java . util . Arrays . asList ( "/usr/bin" , "/usr/local/bin" , "/bin" ) ; final java . io . File expectedFile = new java . io . File ( "/usr/sbin/git-credential-osxkeychain" ) ; final java . lang . String expectedPath = expected...
org . junit . Assert . assertEquals ( null , actual )
testCompareScreen_defaultNrOfRetriesImagesDiffer_retriesTwice ( ) { org . openqa . selenium . WebDriver driver = mockScreenshotDriver ( 2 , true ) ; com . vaadin . testbench . screenshot . ReferenceNameGenerator rngMock = mockReferenceNameGenerator ( "foo" , "foo_bar_11" ) ; com . vaadin . testbench . screenshot . Imag...
org . junit . Assert . assertFalse ( tbce . compareScreen ( "foo" ) )
testGetDeploymentGroovyResourceData ( ) { org . camunda . bpm . engine . rest . Resource resource = org . camunda . bpm . engine . rest . helper . MockProvider . createMockDeploymentGroovyResource ( ) ; org . camunda . bpm . engine . rest . List < org . camunda . bpm . engine . rest . Resource > resources = new org . c...
org . junit . Assert . assertNotNull ( responseContent )
shouldAddTermsFromRedisOnSinterCommand ( ) { when ( localParamsMock . get ( "command" ) ) . thenReturn ( "sinter" ) ; when ( localParamsMock . get ( "key" ) ) . thenReturn ( "key1" ) ; when ( localParamsMock . get ( "key1" ) ) . thenReturn ( "key2" ) ; when ( localParamsMock . getParameterNamesIterator ( ) ) . thenRetu...
org . junit . Assert . assertEquals ( 2 , terms . size ( ) )